Post

Replies

Boosts

Views

Activity

Comment on Non-sendable Warning for NotificationCenter.default.notifications(named: ...) in for await
PS: It would be really helpful to state something like the map workaround in the documentation of .notifications(named:...). The literature about swift concurrency is still very sparse and though there are millions of blog entries explaining async await syntax and the simplest patterns there is still much missing when it comes to best practises and tricks like that above.
Topic: App & System Services SubTopic: General Tags:
Dec ’22
Comment on Seriously? I can't deploy my demo to iPad cus swift 6?
There was no announcement of a new version this year. If I'm mistaken, please send me a link, where anything about a new version was said.
Replies
Boosts
Views
Activity
Nov ’24
Comment on Are changes to published embedded objects really not detected in SwiftUI?
There is some kind of backport https://www.pointfree.co/blog/posts/129-perception-a-back-port-of-observable of the Observation API to earlier system versions by some very awesome guys. Perhaps look into that.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Are changes to published embedded objects really not detected in SwiftUI?
Sorry, perhaps I misunderstood your code, but the old Observable API is known for not updating if model classes are nested. The new Observation API is better to detect changes in classes nested more than one level deep.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Create AVPlayer instance from Data (rather than URL)?
Sorry, may not be the solution you asked for, because it is for NSDataAssets, not Data itself.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23
Comment on AVPlayer observePlayingState with @ObservationTracked possible?
unfortunately this links to itself. Did you mean: https://developer.apple.com/forums/thread/742177
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Nov ’23
Comment on Language settings for back Button
You don't have to do anything in your code. You only have tell Xcode to include the file in your project. Unfortunately I don't have the necessary steps available here today. But have you tried it already?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Comment on Why is my List elements are deleted if I ON/OFF darkmode.
For an explanation see https://levelup.gitconnected.com/state-vs-stateobject-vs-observedobject-vs-environmentobject-in-swiftui-81e2913d63f9 and https://www.hackingwithswift.com/quick-start/swiftui/understanding-property-wrappers-in-swift-and-swiftui
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23
Comment on Non-sendable Warning for NotificationCenter.default.notifications(named: ...) in for await
PS: It would be really helpful to state something like the map workaround in the documentation of .notifications(named:...). The literature about swift concurrency is still very sparse and though there are millions of blog entries explaining async await syntax and the simplest patterns there is still much missing when it comes to best practises and tricks like that above.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’22
Comment on Non-sendable Warning for NotificationCenter.default.notifications(named: ...) in for await
Thank you, your answer was very helpful because it explained the reason for the warnings and gave a reasonable workaround which was not obvious for me!
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’22
Comment on Newbie needs help with SwiftUI
I'm glad, that I could help. Could you please mark the answer as „correct ✅“, if you feel this way?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’22
Comment on Upgrade Swift Playgrounds App to iOS 16
This should work, but there should also be an easier way. Come on Apple!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on Navigating in and out of a NavigationSplitView
In this WWDC Video the reverse case is shown: NavigationStack inside of NavigationSplitView. Still hoping both cases will be supported in later betas.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Comment on Do iPadOS 16 Playground support RegxBuilder?
The beta last year, was not available for all developer program members. This spring there was a more public beta. Let's hope it will be available for a larger group again, later this summer.
Replies
Boosts
Views
Activity
Jun ’22
Comment on Why LazyHStack takes full height but HStack does not?
The Question was „Why LazyHStack takes full height but HStack does not?“. I thought I answered that. What did I do wrong?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’22
Comment on SwiftUI Tutorial - Scrumdinger - mysterious AVPlayer initialization syntax
You are of course right! This one-liner even confused me, though I used many computed vars in Swift already. ;-)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’22