Post

Replies

Boosts

Views

Activity

Reply to Fatal error: Duplicate keys of type 'AnyHashable' were found in a Dictionary
I found the solution was to add var id = UUID() to the model definition so the final result would look something like: @Model final class Character { var id = UUID() var name: String var production: Production? var myCharacter: Bool init(name: String, production: Production?, myCharacter: Bool = false) { self.name = name self.production = production self.myCharacter = myCharacter } } @Model final class Production { var id = UUID() var name: String @Relationship(deleteRule: .cascade, inverse: \Act.production) var acts: [Act] = [] init(name: String) { self.name = name } }
Jan ’25
Reply to What App Sharing Method is this?! It's AMAZING!
I think its an app clip?
Replies
Boosts
Views
Activity
Jun ’25
Reply to MacOS 26 apple removed launchpad?
MacOS 26 replaced launchpad with spotlight, your installed apps can be accessed by pressing cmd+space and then cmd+1.
Replies
Boosts
Views
Activity
Jun ’25
Reply to Fatal error: Duplicate keys of type 'AnyHashable' were found in a Dictionary
I found the solution was to add var id = UUID() to the model definition so the final result would look something like: @Model final class Character { var id = UUID() var name: String var production: Production? var myCharacter: Bool init(name: String, production: Production?, myCharacter: Bool = false) { self.name = name self.production = production self.myCharacter = myCharacter } } @Model final class Production { var id = UUID() var name: String @Relationship(deleteRule: .cascade, inverse: \Act.production) var acts: [Act] = [] init(name: String) { self.name = name } }
Replies
Boosts
Views
Activity
Jan ’25
Reply to Trailing closure passed to parameter of type 'Visibility' that does not accept a closure
I was missing the { from ToolbarItem var body: some View { NavigationStack { Text("Home") .toolbar { ToolbarItem(placement: .navigationBarLeading) { NavigationLink { AccountView() } label: { Image(systemName: "gearshape") } } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’25