Out of time, but got _an_ implementation for what the sync route could look like. Tomorrow night, let's verify it matches my notes and write some tests. See you then!

🔜 Tomorrow’s stream: https://youtube.com/live/pHcJWUmLoZ0
⏮️ Playlist so far: https://www.youtube.com/playlist?list=PLRxjf93xotuofCtaxtGOcWeuxVZYJyY-m
📲 Download Jiiiii: https://apps.apple.com/app/apple-store/id6472801548?pt=14724&ct=MastodonCCStreams&mt=8

#Jiiiii #DevStream #tvOS #visionOS #macOS #iOS #iPadOS #Anime #Swift #SwiftUI #Vapor #WebAuthn #BuildInPublic #TestFlight #PWA #WebPush

Late Night Silent Completions: Jiiiii — Part 739

YouTube
Vertical segmented controls in iOS - do you use them? Love them or hate them? Building a custom SwiftUI component and curious what the consensus is.
#SwiftUI #iOSDev #UIDesign #MobileDev #Apple #Swift #UXDesign #MobileUX #Programming

My latest and best app 🔥

AutoSub

See videos in different languages every day?
Now you can translate them in seconds 👌

Open the app, pick a video, choose source and target languages, then hit translate. Fast and accurate in seconds🤯

#autosub #subtitle #ai #translator #video #swiftui #swift #ios #ios26

Got a good chunk of the commit code thought out, but still need to think through some nuanced aspects. Tomorrow night, let's integrate the commit with a sync in general and see what else crops up. See you then!

🔜 Tomorrow’s stream: https://youtube.com/live/-5GnbjQelMg
⏮️ Playlist so far: https://www.youtube.com/playlist?list=PLRxjf93xotuofCtaxtGOcWeuxVZYJyY-m
📲 Download Jiiiii: https://apps.apple.com/app/apple-store/id6472801548?pt=14724&ct=MastodonCCStreams&mt=8

#Jiiiii #DevStream #tvOS #visionOS #macOS #iOS #iPadOS #Anime #Swift #SwiftUI #Vapor #WebAuthn #BuildInPublic #TestFlight #PWA #WebPush

Late Night Silent Completions: Jiiiii — Part 738

YouTube

Which is possible a side effect, idek if you'd call it a feature of the function, I believe its in place for when you accidentally pass a null pointer. But who knows, either way fflush(nil) flushes all output streams so managed to resolve the issue I was having where I'd have to wait to pass a new line to flush the output stream.

Only took 2 days of light prodding so I do think my Swift skills are improving!

#swift #programming

Anyways, enough "politics", I actually came across a kinda out there swift issue!

In Swell, I used to use a C/CPP function called fflush to flush the stdout output stream everytime a new character is typed into the prompt.

In Swift 6+, and specifically in Linux, any reference to stdout throws the error "reference to var stdout is not concurrency-safe because it involves shared mutable state"

I resolved it by...not referencing mutable state... i.e. fflush(nil)

#swift #cpp

Found out that SwiftPackageIndex provides a way to host documentation on their website. Neat. I used it for a plugin I worked on.

https://swiftpackageindex.com/Snapp-Mobile/SwiftFormatLintPlugin/main/documentation/swiftformatlintplugin

#Swift #OpenSource #SwiftPackageIndex #Documentation