Post

Replies

Boosts

Views

Activity

Reply to Is SwiftUI Picker not compatible with a Bindable property?
Sorry, forgot to include the view code: import SwiftUI import CommonUI import SwiftData struct ChoreView: View { @Bindable var chore: Chore @Environment(\.modelContext) private var context @Query private var familyMembers: [FamilyMember] var body: some View { Card { Form { Section("Name") { TextField("Name", text: $chore.name) } Section("Frequency") { Picker(selection: $chore.choreFrequency, label: EmptyView()) { ForEach(ChoreFrequency.allCases) { frequency in Text(frequency.rawValue.localized).tag(frequency.rawValue) } } } } .frame(maxHeight: 400) .padding(-6) } } }
Sep ’23
Reply to Ghost Padding on NavigationBarPlatterContainer
This NavigationBarPlatterContainer is hiding my inline title when using a large title that scrolls into the inline. Do we have a way around this issue?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to iOS 26 NavigationStack Title Rendering Issue
I have the inverse problem. Large title shows fine, but when the user scrolls the content up, the inline title is hidden by a NavigationBarPlatterContainer.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to We can’t see Large Title on NavigationBar on iOS 26
What about UITableViewControllers? How do I get the large title to show on those?
Topic: UI Frameworks SubTopic: UIKit
Replies
Boosts
Views
Activity
Sep ’25
Reply to SwiftUI image from Bundle.main not working
The assets will be in whatever project the package is used in. To put the assets into the package itself is not good and, unfortunately, there isn't a Preview Content option with packages.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Xcode 16 preview not working
Use Legacy Previews Execution is working so far.
Replies
Boosts
Views
Activity
Sep ’24
Reply to Preview crashes consistency in Xcode 16 beta
I'm getting a JITError: Runtime linking failure error with the 16.0 release. Only 1 SwiftUI view so far. Use Legacy Previews Execution is working so far. import SwiftUI struct Dashboard: View { var body: some View { Text("hello") } } #Preview { Dashboard() }
Replies
Boosts
Views
Activity
Sep ’24
Reply to Is SwiftUI Picker not compatible with a Bindable property?
I am an idiot. Never mind, I got the property name wrong.
Replies
Boosts
Views
Activity
Sep ’23
Reply to Is SwiftUI Picker not compatible with a Bindable property?
Sorry, forgot to include the view code: import SwiftUI import CommonUI import SwiftData struct ChoreView: View { @Bindable var chore: Chore @Environment(\.modelContext) private var context @Query private var familyMembers: [FamilyMember] var body: some View { Card { Form { Section("Name") { TextField("Name", text: $chore.name) } Section("Frequency") { Picker(selection: $chore.choreFrequency, label: EmptyView()) { ForEach(ChoreFrequency.allCases) { frequency in Text(frequency.rawValue.localized).tag(frequency.rawValue) } } } } .frame(maxHeight: 400) .padding(-6) } } }
Replies
Boosts
Views
Activity
Sep ’23
Reply to How do I filter @Query with bound item
FamilyMember has hashable extension
Replies
Boosts
Views
Activity
Sep ’23
Reply to How do I preview a View that's using @Bindable?
I found a solution that works better for me here: https://stackoverflow.com/questions/77025438/how-do-i-preview-a-view-thats-using-bindable
Replies
Boosts
Views
Activity
Sep ’23
Reply to App installed outside of Xcode interrupts library code
found my issue… it involved an assert with a bool returning func that didn't throw. somehow,, wrapping the method call in assert caused it to not run.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to DropInfo doesn't contain my drag object in SwiftUI
Full test project here: https://github.com/AaronBratcher/DragTest
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to How do I get updated custom EnvironmentValues after a method call?
I know how to do it statically. The data shown here was for illustrative purposes. What if I have a form and want to send some user-entered form data? Or the new state of a toggle after the user flips it? If I can't, I can take another approach. I was just wondering if there's a way in my implementation.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to How do I get updated custom EnvironmentValues after a method call?
...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to How do I show code coverage in Swift Packages?
Needed to enable code coverage in the scheme
Replies
Boosts
Views
Activity
Apr ’22