swiftui

Back Open Paginator
29.11.2024 20:02
nicoreese (@nicoreese@mastodon.social)

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?





Show Original Post


29.11.2024 18:06
nicoreese (@nicoreese@mastodon.social)

I have a very weird issue with '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?





Show Original Post


29.11.2024 16:13
azamsharp (@azamsharp@iosdev.space)

Video: Custom Button Styles in SwiftUI
youtu.be/R5I7DCNDrD0

#iosdev #swiftui





Show Original Post


29.11.2024 15:11
rmaraujo (@rmaraujo@mastodon.social)

Dear 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: gist.github.com/rodrigoaraujo0

Please share for visibility :)





Show Original Post


29.11.2024 11:56
dimitribouniol (@dimitribouniol@mastodon.social)

Defeated again! Tomorrow let's try in chrome (yuck) to see if we get better diagnostics… See you then!

🔜 Tomorrow’s stream: youtube.com/live/YbppFU1yoNY
⏮️ Playlist so far: youtube.com/playlist?list=PLRx
📲 Download Jiiiii: apps.apple.com/app/apple-store




Show Original Post


29.11.2024 10:47
dimitribouniol (@dimitribouniol@mastodon.social)

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 😅

Come chill with me: youtube.com/live/Z5vGM_IFook




Show Original Post


29.11.2024 10:17
natpanferova (@natpanferova@mastodon.social)

Happy ! 🎉

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.

books.nilcoalescing.com/




Show Original Post


28.11.2024 23:08
StewartLynch (@StewartLynch@iosdev.space)

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





Show Original Post


28.11.2024 23:04
goodbinary (@goodbinary@mastodonapp.uk)

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





Show Original Post


28.11.2024 23:04
nicoreese (@nicoreese@mastodon.social)

I have a 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))




Show Original Post


28.11.2024 23:03
michaelenger (@michaelenger@hachyderm.io)

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.

michaelenger.com/blog/swiftui-

#SwiftUI




Show Original Post


28.11.2024 22:22
ryanlintott (@ryanlintott@mastodon.social)

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.





Show Original Post


1 2 3 4 5 6 7 8 9 10 11 ...82
UP