Post

Replies

Boosts

Views

Activity

Reply to Custom Container View with ForEach(subviews:content:)
Thank you for your reply! From what I read in the PickerStyle documentation, there is no public API to create a custom one… 🤔 Anyway, revisiting the mentioned sessions allowed me to derive the ID property from the containerValues rather than the Subview.ID, like so: if let selection = subview.containerValues.tag(for: SelectionValue.self) { … } All I have to do then is tag my custom view in place like so: ForEach(SomeEnum.allCases, id: \.self) { enumCase in Text(enumCase.localizedString) .tag(enumCase) } I’m unsure wether this is the best way to go, but at least it technically solves my initial problem and works quite well.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24
Reply to Custom Container View with ForEach(subviews:content:)
Thank you for your reply! From what I read in the PickerStyle documentation, there is no public API to create a custom one… 🤔 Anyway, revisiting the mentioned sessions allowed me to derive the ID property from the containerValues rather than the Subview.ID, like so: if let selection = subview.containerValues.tag(for: SelectionValue.self) { … } All I have to do then is tag my custom view in place like so: ForEach(SomeEnum.allCases, id: \.self) { enumCase in Text(enumCase.localizedString) .tag(enumCase) } I’m unsure wether this is the best way to go, but at least it technically solves my initial problem and works quite well.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Xcode Cloud Build input file not found
Same issue here, with about 5 files… Any specific targets in your Project? I do have a WidgetExtension target and wondering if it could be the cause since on another project with no WidgetTarget I didn't had any issue with Xcode Cloud…
Replies
Boosts
Views
Activity
Oct ’22
Reply to Displaying a subtitle for nested UIMenus
Alright then! 👀 Thanks for the explanation
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jun ’21