swiftui

Back Open Paginator
07.02.2025 01:22
harmash (@harmash@mastodon.social)

Working on a refreshed grid animation for a small widget. Quite happy with the result so far considering that widgets don't have any of the new fancy animation APIs like PhaseAnimator, Keyframes, etc., takes some hoops jumping to make it look half-decent... @_Davidsmith would probably know some tricks 😅





Show Original Post


07.02.2025 00:36
helge (@helge@mastodon.social)

I think for that you don’t want structural identity because the structure will eventually change.
But assigning global identity (like a DOM id) conflicts with componentization. There has to be something in the middle, a path builder that is not tied to the exact structure.




Show Original Post


07.02.2025 00:29
helge (@helge@mastodon.social)

It’s not usually an issue in SwiftUI because an app upgrade implies a restart, but I wonder whether such things leak in for stuff like state restoration




Show Original Post


06.02.2025 23:50
helge (@helge@mastodon.social)

Do you remember those links like “http://Dodge.woa/wo/2.3.2.4.1.1.1.1.2.3.4.5”? Those (usually numeric paths) are essentially a representation of the thing that is called “structural identity” in .
I.e. the button in the pic would produce a link like `.woa/wo/2.2` to represent a click on the second item in the `ForEach`.
It's problematic on the web, because links can be long-living, but the server may upgrade and have a different structure.





Show Original Post


06.02.2025 22:13
patrickmcconnell (@patrickmcconnell@mastodon.social)

Refactoring Views, Generics and Is This Really Better?: pmcconnell.micro.blog/2025/02/




Show Original Post


06.02.2025 20:45
puppethead (@puppethead@ieji.de)

Ran across a potentially confusing SwiftUI situation today: "any View" versus "AnyView" (not to mention "some View"). I managed to refactor my way away from the problem, but here's a good exploration of AnyView.

swiftbysundell.com/articles/av

#SwiftUI #SwiftLang




Show Original Post


06.02.2025 20:01
swiftdevjournal (@swiftdevjournal@mastodon.world)

To show a Swift enum in a SwiftUI picker, you must do two things.

1. Make the enum conform to CaseIterable.
2. Wrap the picker in ForEach, supplying an array of the enum’s values.

More details in the following article:

swiftdevjournal.com/showing-a-

#SwiftUI




Show Original Post


06.02.2025 18:25
patrickmcconnell (@patrickmcconnell@mastodon.social)

If it's not obvious, I post most of my tips here mostly for myself.

I can rarely remember a solution a day or two after I've figured it out and they are always needed again at some point.

If these are helpful for others that's great but they are almost always helpful for me later.

It's like "AI" if "AI" stood for actual verifiable intelligence.




Show Original Post


06.02.2025 17:37
st1nger (@st1nger@infosec.exchange)

An attempt to resurrect #Hotline for modern #Apple systems (#iOS & #macOS etc) by completely recreating it in #Swift and #SwiftUI github.com/mierau/hotline




Show Original Post


06.02.2025 17:00
coffeebytes (@coffeebytes@mastodon.social)

If you're diving into SwiftUI, this resource is your secret weapon. It's a must-have for any developer! 😉
fuckingformatstyle.com/numeric




Show Original Post


06.02.2025 16:53
omarthamri (@omarthamri@iosdev.space)

@swiftui @swift Exciting News! 🎉 Just dropped Part 4 of my "Let's Build Pinterest clone Using SwiftUI and “firebase” playlist! 📺🛠️ Dive deeper into Swift development as we take our app to the next level. 🚀 Check it out now and let's code together! 🔗 youtube.com/watch?v=Y1Oj-DoFO9 #swiftui #swift #iosdev




Show Original Post


06.02.2025 16:52
JTostitos (@JTostitos@techhub.social)

Piatto - Dining Log v2 is finally out! This version is a complete redesign transitioning away from a list and showing a Map instead. What a ✨ glow up ✨. Get 1 week free:

Yearly: apps.apple.com/redeem?ctx=offe

Yearly Family Sharing: apps.apple.com/redeem?ctx=offe

Offer is not here for long so get it while you can!

#indiedev #indie #swift #swiftui #iosdev #Apple





Show Original Post


1 ...7 8 9 10 11 12 13 14 15 16 17 ...163
UP