Post

Replies

Boosts

Views

Activity

Comment on Apple doc still refers to nonexistent info.plist. Should we use the entitlements file instead?
Thanks. That screen shot is odd, because it shows "Build Settings" selected, not Info. I don't have anything like those entries in my build settings. On the Info page... that is some absymal UI. I mean... not only are the + controls invisible unless you happen to roll over them, but they are depicted as only applying to one setting... not as if they add entirely new entries to the overall list. Unbelievable. Thanks! I did add the options I'll need. But the simulator doesn't prompt for them...
Topic: Code Signing SubTopic: Entitlements Tags:
Jan ’24
Comment on Xcode do not pause at breakponts on "Wait for the executable to be lauched" mode
I have non-functioning breakpoints in Xcode 15.2 but I'm targeting iOS 15.5. Running in a simulator. No breakpoints work, and I've verified that the scheme is set to Debug.
Replies
Boosts
Views
Activity
Feb ’24
Comment on How to Edit /System/Library/LaunchAgents/
So does the system read /Library/LaunchAgents first and disregard any duplicate plists that it finds in /System/Library/LaunchAgents?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’24
Comment on Having Trouble passing a ButtonStyle as a parameter to a func
Unfortunately trying to use a parameter like that results in: 'some' types are only implemented for the declared type of properties and subscripts and the return type of functions However, something like this works: @ViewBuilder func getButton<S: ButtonStyle>(style: S) -> some View { ... }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Are changes to published embedded objects really not detected in SwiftUI?
Thanks. Unfortunately I can't use that because I'm targeting back to iOS 15. I did have a look at it, though, and it too seems pretty incomplete. I appreciate your suggestion.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Are changes to published embedded objects really not detected in SwiftUI?
Thanks, but the UserManager is owned by the application, not a view.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Structs vs Classes?
Looks like those have been taken down.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Conforming @MainActor class to Codable
That doesn't work for me. Adding async to those does make the errors on those functions go away, but the compiler still complains Type 'User' does not conform to protocol 'Decodable' Type 'User' does not conform to protocol 'Encodable' with no further information.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Are changes to published embedded objects really not detected in SwiftUI?
Thanks for the reply, but how is that "as intended?" When something published changes, the UI is supposed to react.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on SwiftUI seems to assume that no one uses optionals anymore.
Thanks, but that's essentially the same "solution" I posted. It still requires that I implement this nonsense for every member of every class I want to expose in a UI. Totally impractical.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Safely converting optional state to non optional binding
But what if the optional is nil?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Apple doc still refers to nonexistent info.plist. Should we use the entitlements file instead?
Thanks, but still not seeing any way to add values in the UI. Ugh, see below.
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Apple doc still refers to nonexistent info.plist. Should we use the entitlements file instead?
Thanks. That screen shot is odd, because it shows "Build Settings" selected, not Info. I don't have anything like those entries in my build settings. On the Info page... that is some absymal UI. I mean... not only are the + controls invisible unless you happen to roll over them, but they are depicted as only applying to one setting... not as if they add entirely new entries to the overall list. Unbelievable. Thanks! I did add the options I'll need. But the simulator doesn't prompt for them...
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Apple doc still refers to nonexistent info.plist. Should we use the entitlements file instead?
Thanks for the reply. I looked at the options, but under "Info.plist values" there's no way to add any. So the question remains: Will adding key/value pairs to the app's .entitlements file propagate them into Info.plist if necessary?
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
Dec ’23
Comment on What does "Extra arguments at positions #11, #12 in call mean" in swift Playgrounds?
Unbelievable.
Replies
Boosts
Views
Activity
Dec ’23
Comment on SwiftUI default focus on TextField/TextEditor when view is loaded
Pretty pathetic that we need this, but I'm using it with a .6 delay and it works. Thanks man. I can't resist mocking the fact that a UI toolkit went out the door with no way to set initial focus... and remained that way for years.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23