Post

Replies

Boosts

Views

Activity

Reply to Simulators for Swift 5 app
To add a new Simulator From Xcode: Window > Devices and Simulators > Simulators {Shows a list of currently-installed Simulators} Click the "+" button (at the bottom-left) Choose the Simulator you want to add e.g. Device Type: iPad (5th generation) OS Version: iOS 15.4 Click the "Create" button, to add the new Simulator
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’22
Reply to How to take screenshot when you don't have the device
It sounds like your tasks are: Open the project in Xcode Run it on a Simulator From the Simulator, take the screenshots you need You could make it easier for people to help you, by posting some more information: What platform does the app run on (e.g. macOS, tvOS, watchOS, iOS, iPadOS)? How was the app developed (e.g. Xcode project using Swift, or...)? Can you successfully open the project in Xcode?
Mar ’22
Reply to Blocking screenshots and recordings in app
It is not possible to prevent screenshots and screen recording on iOS. And yet, ScreenShieldKit seems to have achieved this! That suggests, at the least, that it is very difficult, and there is no "simple" coding solution. I suggest that you investigate ScreenShieldKit, and see if their pricing model suits your needs (depending on how important this feature is, for your app).
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’22
Reply to Universal Control and Extended display to Middle Aged iMacs.
Universal Control document, including "Supported Devices": https://support.apple.com/en-us/HT212757 Specifically: iMac introduced in 2017 or later, plus iMac (Retina 5K, 27-inch, Late 2015) extending the display to my late 2015 iMac to use it as a secondary 5k display is still not a reality. It sounds like this should work... ...so it might be worth double-checking that everything is set up correctly (as explained in that same link).
Topic: Community SubTopic: Apple Developers Tags:
Mar ’22
Reply to Xcode - segue between table and detail view
self.navigationController?.pushViewController(vc!, animated: true) Force-unwrapping is dangerous. Make that your vc is not nil, before you push it. If it is nil, then solve that problem. e.g. if let vc = storyboard?.instantiateViewController(withIdentifier: "ActionDetailViewController") as? ActionDetailViewController { /// setup vc... self.navigationController?.pushViewController(vc, animated: true) } else { print("Error: couldn't instantiate ActionDetailViewController") }
Mar ’22
Reply to Simulators for Swift 5 app
To add a new Simulator From Xcode: Window > Devices and Simulators > Simulators {Shows a list of currently-installed Simulators} Click the "+" button (at the bottom-left) Choose the Simulator you want to add e.g. Device Type: iPad (5th generation) OS Version: iOS 15.4 Click the "Create" button, to add the new Simulator
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Apple HomeKit requirements and testing
Here you go: https://developer.apple.com/homekit/
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to When the router is empty, the status is always unsatisfied.
Do you have a question?
Replies
Boosts
Views
Activity
Mar ’22
Reply to PreviewProvider view initializer compiler error with @Binding
Try this: struct RootView_Previews: PreviewProvider {     static var previews: some View {         let thingToPreview = Thing()         RootView(thingToUse: .constant(thingToPreview))     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to How to take screenshot when you don't have the device
It sounds like your tasks are: Open the project in Xcode Run it on a Simulator From the Simulator, take the screenshots you need You could make it easier for people to help you, by posting some more information: What platform does the app run on (e.g. macOS, tvOS, watchOS, iOS, iPadOS)? How was the app developed (e.g. Xcode project using Swift, or...)? Can you successfully open the project in Xcode?
Replies
Boosts
Views
Activity
Mar ’22
Reply to Blocking screenshots and recordings in app
It is not possible to prevent screenshots and screen recording on iOS. And yet, ScreenShieldKit seems to have achieved this! That suggests, at the least, that it is very difficult, and there is no "simple" coding solution. I suggest that you investigate ScreenShieldKit, and see if their pricing model suits your needs (depending on how important this feature is, for your app).
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Universal Control and Extended display to Middle Aged iMacs.
Universal Control document, including "Supported Devices": https://support.apple.com/en-us/HT212757 Specifically: iMac introduced in 2017 or later, plus iMac (Retina 5K, 27-inch, Late 2015) extending the display to my late 2015 iMac to use it as a secondary 5k display is still not a reality. It sounds like this should work... ...so it might be worth double-checking that everything is set up correctly (as explained in that same link).
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Xcode - segue between table and detail view
self.navigationController?.pushViewController(vc!, animated: true) Force-unwrapping is dangerous. Make that your vc is not nil, before you push it. If it is nil, then solve that problem. e.g. if let vc = storyboard?.instantiateViewController(withIdentifier: "ActionDetailViewController") as? ActionDetailViewController { /// setup vc... self.navigationController?.pushViewController(vc, animated: true) } else { print("Error: couldn't instantiate ActionDetailViewController") }
Replies
Boosts
Views
Activity
Mar ’22
Reply to AR Smart Signage on Cylindrical Surface
Repeated posting of what appears to be an advertisement. Reported as spam.
Replies
Boosts
Views
Activity
Mar ’22
Reply to Universal Control and Extended display to Middle Aged iMacs.
Interestingly, the list of iMacs that can connect to the new Studio Display includes the "2017 or later", but not your "Retina 5K, 27-inch, Late 2015". I wonder if this might be related, and the "Late 2015" is missing something critical?
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Getting the following error when trying to fetch a remote image.
Your link is dodgy. The website has a certificate that is not valid.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Attach magnetically an object in SwiftUI
This is a repeat question.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Can't conform to NSViewRepresentable
Both examples build cleanly for me (in a new macOS SwiftUI project). (I have to supply example 1 with a dummy implementation of HFTextView) Xcode 13.3 (13E113)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to GPS speed received is 0 even though the device is moving
speed "Because the actual speed can change many times between the delivery of location events, use this property for informational purposes only." i.e. "speed" is not always literally correct You should also check "speedAccuracy" "When this property contains a negative number, the value in the speed property is invalid."
Replies
Boosts
Views
Activity
Mar ’22
Reply to Build succeeded but App crashes -Thread 1: must pass a class of kind UITableViewCell Ask Question Asked today Modifie
Does not crash for me. To see the "Log Out" text, I had to change your return UITableViewCell() to return cell Xcode 13.3 (13E113) Tip: keep it to one question per thread.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’22