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.
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.
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
- 1. Lakers 75.5K posts
- 2. #Talus_Labs N/A
- 3. Wemby 26.3K posts
- 4. Luka 68.3K posts
- 5. Marcus 31.5K posts
- 6. #LakeShow 5,634 posts
- 7. Blazers 8,532 posts
- 8. Russ 10.6K posts
- 9. Ayton 15.9K posts
- 10. #AmphoreusStamp 6,717 posts
- 11. Horford 1,994 posts
- 12. Richard 45.2K posts
- 13. #RipCity N/A
- 14. #dispatch 63.3K posts
- 15. Thunder 36.4K posts
- 16. Godzilla 33.6K posts
- 17. Podz 2,413 posts
- 18. Kuminga 3,348 posts
- 19. Nico Harrison 1,834 posts
- 20. Spencer Knight N/A
Something went wrong.
Something went wrong.