Post

Replies

Boosts

Views

Activity

Reply to Challenged shouldChangeCharactersIn behaviour.
It adds a lot of complexity to the editing process. Our code works as expected if a user backspaces at the end of the text, but deletes the wrong character if they move the cursor. Something that I found helpful was to not add injected characters after user typed text, other than possibly at the end. Essentially reformatting the text after the edit.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’23
Reply to How to get MacOS Version and device model from iOS app running on the Mac with Apple Silicon?
You likely have to build a mac catalyst or macos app for that. For iOS apps it is emulating an iPad, so you get the emulated device information.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to Securing paywalled features macOS app
What about using an encrypted token that gives access?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Xcode: Failed to install the app on the device
A lot of people are reporting issues installing on iOS 17 devices. I have the impression it might be connected to locked down corporate computers. VPN's can impact it as well. My personal computer works fine, but my work system can't.
Replies
Boosts
Views
Activity
Dec ’23
Reply to Xcode warning for call to DispatchQueue.main.sync: Call to method 'asd' in closure requires explicit use of 'self' to make capture semantics explicit
Shouldn't you be using self?.asd() in the closure for weak self?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to App for personal use?
That is what I do. I have a media playing app for my use.
Replies
Boosts
Views
Activity
Dec ’23
Reply to Breakpoints do not work on simulators with iOS version 15.5
It seems to work here. xcode 15.0.1 m1 max MacBook Pro Ventura 13.6.2
Replies
Boosts
Views
Activity
Dec ’23
Reply to System Settings crashing: Sonoma 14.2
Have you reported it to your company's IT department?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Problems with csv-Import
Is that where you are saving the file? It sounds like it is in the bundle and on a real device that will be write protected. You need to save the file in a write enabled folder. Documents or some where in the Application Data folder, for instance.
Replies
Boosts
Views
Activity
Dec ’23
Reply to Preview Macro fails to load when using ObservedObject
You need to return the view... #Preview { @StateObject var cViewModel = ChildViewModel() return ChildView(viewModel: cViewModel) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Custom button not respecting the size defined in frame
You are setting the background for the label and not the button as a whole.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to No sample code
There is a blue download button on the page you linked to. That downloads a zipped copy of the project. It is in the page heading.
Replies
Boosts
Views
Activity
Dec ’23
Reply to tvOS app started crashing with 17.2, could not load NIB in bundle
It would be worth filing bug reports.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to XCode Previews not working
My thought is that is a small system.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Above iOS 17 UIWebview issue
It is worth remembering that it has been deprecated for some time.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Challenged shouldChangeCharactersIn behaviour.
It adds a lot of complexity to the editing process. Our code works as expected if a user backspaces at the end of the text, but deletes the wrong character if they move the cursor. Something that I found helpful was to not add injected characters after user typed text, other than possibly at the end. Essentially reformatting the text after the edit.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23