Aviel

@aviel
130 Followers
136 Following
160 Posts
iOS at Adobe • Philly, US
SwiftUIhttp://SwiftUI.wtf
Bento (link 🌳)https://bento.me/aviel
Happy “Y” vs “y” in date formatting day for all that celebrate https://stackoverflow.com/questions/26431882/difference-between-year-of-era-and-week-based-year
Difference between year-of-era and week-based-year?

Java 8's DateTimeFormatter class has a method, ofPattern(String pattern), that lets you define a format from a string of A-z, a-z letters. The examples don't clarify the difference between y, year-...

Stack Overflow

Everything you wanted to know about Observation framework!

Highly recommend going over the caveats section - some changes in behavior might surprise you!

https://in.swiftui.wtf/observation

#Swift #SwiftUI

Observation

Every time I shop for an appliance it actually becomes more and more challenging to find a model that does not have WiFi in it 🤦🏼‍♂️ I used to also demand physical knobs and no touch screen, gave up on that long ago ☹️ https://kicou.info/@kicou/108855388579673723
Kicou (@[email protected])

Attached: 1 image

kicou.info

The new Observation framework for #SwiftUI keeps getting better! 🎉

@phausler just merged a change to drop the requirement of default values for properties in @Observable class! (Assuming I read the PR correctly? https://github.com/apple/swift/pull/65984/files)

[Observation] Add property definite initialization support by phausler · Pull Request #65984 · apple/swift

This is a draft adoption of what the definite initialization feature adoption for the @Observable macro would look like (given the pitched syntax).

GitHub

I’m building a new 🦣#Mastodon app for #iOS, but it’s different…. 👀

- Posts are ranked (locally, on device) so you only see the best from your timeline.
- There’s no doom scrolling - once you’ve seen all the good stuff - it just ends. Come back later for new content.

I call it “Mastodon for busy people”, or, “Manfred” in short.

This is the first #TestFlight - let me know what you think about the concept! 🙏

https://testflight.apple.com/join/DP0MxOGj

Join the Manfred for Mastodon beta

Available on iOS

לא יאמן כמה אנשים ליטרלי בטוחים שהבינה המלאכותית (כלומר מודלי השפה, כן?) תשמיד אותנו ממש בקרוב.
אלו שלא, בטוחים שהיא תחליף חלק עצום מהמקצועות.
#wwdc session “get started with privacy manifests” says there’s a specific list of “privacy impacting SDKs”, and that the list is published on Apple Docs. Was anyone able to find where that list is?
I read the Observation framework codebase and now I have zero questions about how it works. Which is amazing. It made me realize how nice it would be if #SwiftUI would be open source too! We’re all playing guessing games about how it works for years and having hard time debugging it, what’s so pRoPrIeTaRy about it that we can’t see it? Put it in GitHub! 🫵

🧠 The new Observable type greatly simplifies data flow and improves performance in SwiftUI, and our engineers are so excited to use it! #WWDC23

However, there’s a critical gotcha that Apple mentions briefly in their docs—if you use SwiftUI, you’ll NEED to know this. #iOSDevTips

https://developer.apple.com/documentation/swiftui/managing-model-data-in-your-app

Managing model data in your app | Apple Developer Documentation

Create connections between your app’s data model and views.

Apple Developer Documentation