Posts

Post not yet marked as solved
3 Replies
I am an *****. Never mind, I got the property name wrong.
Post not yet marked as solved
3 Replies
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) } } }
Post not yet marked as solved
3 Replies
I found a solution that works better for me here: https://stackoverflow.com/questions/77025438/how-do-i-preview-a-view-thats-using-bindable
Post not yet marked as solved
1 Replies
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.
Post not yet marked as solved
1 Replies
Full test project here: https://github.com/AaronBratcher/DragTest
Post marked as solved
1 Replies
Needed to enable code coverage in the scheme
Post not yet marked as solved
1 Replies
Found my answer. In the target dependencies, need to include the package name as a string:         // Targets are the basic building blocks of a package. A target can define a module or a test suite.         // Targets can depend on other targets in this package, and on products in packages this package depends on.         .target(             name: "DBCore",             dependencies: [ "AgileDB" ]),         .testTarget(             name: "DBCoreTests",             dependencies: ["DBCore"]),     ]
Post not yet marked as solved
5 Replies
Your understanding is correct. I believe it's a waste to download unnecessary files and thought there might be a way to prevent it from downloading a part of the hierarchy. Thanks for the feedback.