Post

Replies

Boosts

Views

Activity

Reply to Adding function parameter to view results in error for existing computed property
So it appears the problem it had was with the order of the parameters, because the following builds without error: `var action: () -> Void     var title: String     var desc: String {         get {             return self._desc         }         set {             self._desc = newValue             self.suggestions = newValue.components(separatedBy: "\n\n")         }     }     private var _desc: String = ""          private var suggestions:[String] = []          public init(action: @escaping () -> Void, title: String, desc: String) {         self.action = action         self.title = title         self.desc = desc     }` Also worth mentioning is that the type of value being added as a parameter didn't matter (I tried it as a string and it was the same as when it was a function). If anyone can explain what is going on here—I'd very much appreciate it. If you happen to run into this problem, try rearranging the order of your parameters.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’22
Reply to I can't get StoreKit to work and I don't know how to debug it
I'm attempting to do the same thing. Are you getting errors in the console? Here's what I'm getting: 2022-12-09 11:35:17.208256-0800 StoreDemo1[20986:8095799] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)") 2022-12-09 11:35:17.208310-0800 StoreDemo1[20986:8095799] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)") 2022-12-09 11:35:17.208380-0800 StoreDemo1[20986:8095799] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)") 2022-12-09 11:35:17.273253-0800 StoreDemo1[20986:8095825] [Default] [StoreKit] Did not receive any products or error for products request.
Topic: App & System Services SubTopic: StoreKit Tags:
Dec ’22
Reply to macOS swiftui navigation causes close/min/max buttons to shift around
Okay, so what worked for me was to include the toolbar with buttons in the screens which don't require buttons and then to hide them with an opacity modifier set to 0.0, like so: Button(action: {}) { Label("Share", systemImage: "square.and.arrow.up") } .opacity(0.0)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to SwiftUI modifying state warning - pointing to @main
I am also experiencing this. I didn't make any changes that effect any kind of state whatsoever. I merely attempted to edit the Entitlements File, and then undid the changes. This error appeared and now it won't go away. Even reverting to previous builds doesn't make it stop
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Adding function parameter to view results in error for existing computed property
So it appears the problem it had was with the order of the parameters, because the following builds without error: `var action: () -> Void     var title: String     var desc: String {         get {             return self._desc         }         set {             self._desc = newValue             self.suggestions = newValue.components(separatedBy: "\n\n")         }     }     private var _desc: String = ""          private var suggestions:[String] = []          public init(action: @escaping () -> Void, title: String, desc: String) {         self.action = action         self.title = title         self.desc = desc     }` Also worth mentioning is that the type of value being added as a parameter didn't matter (I tried it as a string and it was the same as when it was a function). If anyone can explain what is going on here—I'd very much appreciate it. If you happen to run into this problem, try rearranging the order of your parameters.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to APP STORE connect operation error: An error occurred uploading to the App Store
How do you sign out of a dev account in Xcode?
Replies
Boosts
Views
Activity
Nov ’22
Reply to I can't get StoreKit to work and I don't know how to debug it
I'm attempting to do the same thing. Are you getting errors in the console? Here's what I'm getting: 2022-12-09 11:35:17.208256-0800 StoreDemo1[20986:8095799] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)") 2022-12-09 11:35:17.208310-0800 StoreDemo1[20986:8095799] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)") 2022-12-09 11:35:17.208380-0800 StoreDemo1[20986:8095799] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)") 2022-12-09 11:35:17.273253-0800 StoreDemo1[20986:8095825] [Default] [StoreKit] Did not receive any products or error for products request.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Dec ’22