devdanoleary's profile picture. iOS, Swift, SwiftUI, Vapor

Dan O'Leary

@devdanoleary

iOS, Swift, SwiftUI, Vapor

Centralizing ATProtocol/Bluesky access and refresh token logic so I'm only doing it once per session. Until I've set up a PDS, my app will simply cross-post to Bluesky if a user has added their account. After the PDS, posts "should" get picked up by the relays. But for now, this.


Fixed an elusive (but suddenly obvious) bug there the app would crash on launch if not for certain async protections. Turns out I was using a completion handler when an async version of the same function was available. Thanks docs!


When I'm confused by my own naming of properties, it's time for a change. Example; "ContinueWithBlueSkyView" is getting triggered by the "showATProtocolSignInSheet" bool value. 🤦🏻‍♂️ This will not do.


Real life really gets in the way of my coding life. Thankfully real life can now take a pause.


I make use of #warning notes in my code to keep me on track within a file. But they can throw off Xcode's auto-complete for some reason. Note with/without the warning.

devdanoleary's tweet image. I make use of #warning notes in my code to keep me on track within a file. But they can throw off Xcode's auto-complete for some reason. Note with/without the warning.
devdanoleary's tweet image. I make use of #warning notes in my code to keep me on track within a file. But they can throw off Xcode's auto-complete for some reason. Note with/without the warning.

My error handling is centralized and this has led me to more problems than solutions. I like the MidstError enum, but the resetAlert() method is a code smell and I'm getting away from all of this except the enum.

devdanoleary's tweet image. My error handling is centralized and this has led me to more problems than solutions. I like the MidstError enum, but the resetAlert() method is a code smell and I'm getting away from all of this except the enum.

There's a difficulty in just "getting started". What I'm working toward is eventually this, the ATproto lexicon. But I have a lot of code cleanup to do before really diving in.

devdanoleary's tweet image. There's a difficulty in just "getting started". What I'm working toward is eventually this, the ATproto lexicon. But I have a lot of code cleanup to do before really diving in.

We’re going to try something a little new here. Some live thoughts on my coding process and progress. I work in iOS Development using Swift, SwiftUI, Vapor and the ATProtocol.

devdanoleary's tweet image. We’re going to try something a little new here. Some live thoughts on my coding process and progress. I work in iOS Development using Swift, SwiftUI, Vapor and the ATProtocol.

United States Tren

Loading...

Something went wrong.


Something went wrong.