Upon further investigation it seems like it matters how I put the UUID into the predicate. The first fetch works for both but updating only works if I put it as CVarArg? #SwiftUI
I have a very weird issue with #SwiftUI's FetchRequest. When I have a predicate that looks for entities with a given relationship, it will remove the item from the fetch request when it's updated. This is unique for that predicate. If I look for any other value, it works great. If I go back to the view, I can see that the relationship did not change and the items are back on display.
Anyone have an idea?
Video: Custom Button Styles in SwiftUI
https://youtu.be/R5I7DCNDrD0
Dear #swift #swiftui devs, has anyone ran into this weird SwiftCharts legend bug?
It's trying to align the items as columns, but seems to not be taking line 2 into consideration before positioning line 1.
Here's the code to reproduce: https://gist.github.com/rodrigoaraujo01/a0d4066cf46ef8083f4d741ad370123c
Please share for visibility :)
Defeated again! Tomorrow let's try in chrome (yuck) to see if we get better diagnostics… See you then!
🔜 Tomorrow’s stream: https://youtube.com/live/YbppFU1yoNY
⏮️ 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
I'm making a seasonal anime guide app, in the open for all to experience and learn from!
Day two of staring at RFCs hoping to spot what I messed up with the push message encryption 😅
#Jiiiii #DevStream #tvOS #visionOS #macOS #iOS #iPadOS #Anime #Swift #SwiftUI #Vapor #WebAuthn #BuildInPublic #TestFlight #PWA #WebPush
Come chill with me: https://youtube.com/live/Z5vGM_IFook
Happy #BlackFriday! 🎉
For the next few days, my books Integrating SwiftUI into UIKit Apps and Swift Gems are 30% off 💸
If you're an iOS developer modernizing UIKit projects with SwiftUI or looking to refine your Swift skills, these might be for you.
https://books.nilcoalescing.com/
Completed another section in my full Swift/SwiftUI course for Mac menubar, iOS, Widget and WatchKit app.
On track for January release. Off to Maui now for 2 weeks R&R#Swift #SwiftUI
Oops. Just spotted a bug. When it creates a cycling route (i.e. on roads, not footpaths) it estimates the time to do it correctly - in this case 1 hour 39 mins for 16.0 miles. However, when you tap on the time to adjust how quickly you want to do it, it defaults to walking speed 😜🚴♂️🐢
#iosdev #swiftUI
I have a #SwiftUI View that has a view model. The view model needs a `type` to do its work, which comes from the presenting view. What's the best way to manage this? I've seen that's it's discouraged to initialize a State from outside the view. I'd need something like:
let view = MyView(type: .games)
MyView then needs to set up the view model based on the type.
Would it be okay to create the view model outside of the view and do this?
let view = MyView(viewModel: ViewModel(type: .games))
No idea if this is actually useful for anyone, but I've documented a means to get the current mouse position within a SwiftUI view.
https://michaelenger.com/blog/swiftui-mouse-position/
Another Swift concurrency error appeared in XCode 16.2 beta 3. The onPreferenceChange closure now has to be Sendable which means (unless I'm missing an obvious solution) we can no longer modify main actor view properties.
I really hope this closure can instead use @.MainActor because otherwise this is going to cause some big problems.