Post

Replies

Boosts

Views

Activity

Reply to Why does a MainActor class / function not run on Main Thread?
Change (optional) @MainActor func updateSomeUI() {     assert(Thread.isMainThread) // Assertion failed! } to     func updateSomeUI() {         assert(Thread.isMainThread) // Assertion failed!     } Then class UpdateObject {     func fetchSomeData(completion: @escaping (_ success: Bool) -> Void) {         DispatchQueue.global().async {             completion(true)         }     } } to class UpdateObject {     func fetchSomeData(completion: @escaping (_ success: Bool) -> Void) {        Task { @MainActor in             completion(true)         }     } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’22
Reply to Contact who ?
Betas are meant for development devices with the accepted risk of issues. Wait until it goes into public release then book an appoint with your local Apple store or ask your questions in the community forums where retail Apple specialist will assist you seeing this is not a developer related issue.
Topic: App & System Services SubTopic: Hardware Tags:
Mar ’22
Reply to App got rejected
More functionality. Add more beef in terms of the feature set not minimal fluff just to show that you can load a JSON feed. What benefits will your application offer the end user. Will it allow the end user to submit their recipes, will it allow the end user to share recipes, will it allow them to rate other recipes or plan meals. Sit down and ask yourself as an end user of this application what will compel me to want to download this app and build your new design and work flows from those questions. Involve family & friends get their feedback.
Topic: Design SubTopic: General Tags:
Mar ’22
Reply to Question about formatting of Measurement<...> items
import Foundation let times = [1,10,100,1000,10103,2354,83674,182549].map {     Measurement<UnitDuration>(value: $0, unit: .microseconds) } // convert times from microseconds to milliseconds let milliseconds = times.map { $0.converted(to: .milliseconds)} milliseconds.forEach { print($0.value) } // output 0.001 0.009999999999999998 0.09999999999999999 1.0 10.103 2.3539999999999996 83.67399999999999 182.54899999999998 Or to mutate a measurement inplace var micro = Measurement<UnitDuration>(value: 1000000, unit: .microseconds) micro.convert(to: .milliseconds) print(micro.value) // output 1000.00
Topic: App & System Services SubTopic: General Tags:
Mar ’22
Reply to Why does a MainActor class / function not run on Main Thread?
Change (optional) @MainActor func updateSomeUI() {     assert(Thread.isMainThread) // Assertion failed! } to     func updateSomeUI() {         assert(Thread.isMainThread) // Assertion failed!     } Then class UpdateObject {     func fetchSomeData(completion: @escaping (_ success: Bool) -> Void) {         DispatchQueue.global().async {             completion(true)         }     } } to class UpdateObject {     func fetchSomeData(completion: @escaping (_ success: Bool) -> Void) {        Task { @MainActor in             completion(true)         }     } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Contact who ?
Betas are meant for development devices with the accepted risk of issues. Wait until it goes into public release then book an appoint with your local Apple store or ask your questions in the community forums where retail Apple specialist will assist you seeing this is not a developer related issue.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to "The given data was not valid JSON."
If you're seeing this as well then the exception thrown is correct, do you need to pass auth headers to the server assuming the access point is not a public endpoint?:
Replies
Boosts
Views
Activity
Mar ’22
Reply to The "LIVE" badge on tvOS 15 UI
The is a difference between a video on demand stream and a live stream and yes this is within the metadata.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to IAP page timeout
Try Firefox, or Chrome if it works then its the new privacy features of Safari.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Are macOS apps not required to ask permission to track?
desktops seldomly move around from point a to point b and are not fitted with GPS. The location derived from the other devices are more accurate than the location associated with an IP address maintained by an ISP.
Replies
Boosts
Views
Activity
Mar ’22
Reply to Submitting our first app - what constitutes a "reader" app for Guideline 3.1.3(a)? Required to use IAP.
Rules are rules, selling products or services via your app IAP is needed if said content is available via the app. Netflix sells memberships not movies.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to NWPathMonitor
??🧐
Replies
Boosts
Views
Activity
Mar ’22
Reply to Unable to prepare iPhone for development
More details: Xcode version, iOS version
Replies
Boosts
Views
Activity
Mar ’22
Reply to UIRequiredDeviceCapabilities and Xcode 13 - cannot run on iPhone 5s and my builds are rejected by Apple reviewer
Try turning off or on Auto generate plist in build settings depending on which state is causing the rejection.
Replies
Boosts
Views
Activity
Mar ’22
Reply to Lack of Paper Size options for AirPrint with Pantum P2506w
Contact the manufacturer for the Pantum P2506w device or post your question on the retail non-developer community apple support forum.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Generate JWT token using RS256 algorithm
See here IBM codebase: https://github.com/Kitura/Swift-JWT JWT.io: https://jwt.io/libraries?language=Swift
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Why does PKToolPicker disappear when blur and doesn't come back
Refer to the sample code DrawingViewController for something you might have missed in setting to the toolPicker: https://developer.apple.com/documentation/pencilkit/drawing_with_pencilkit updateLayout(for:)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to App got rejected
More functionality. Add more beef in terms of the feature set not minimal fluff just to show that you can load a JSON feed. What benefits will your application offer the end user. Will it allow the end user to submit their recipes, will it allow the end user to share recipes, will it allow them to rate other recipes or plan meals. Sit down and ask yourself as an end user of this application what will compel me to want to download this app and build your new design and work flows from those questions. Involve family & friends get their feedback.
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Question about formatting of Measurement<...> items
import Foundation let times = [1,10,100,1000,10103,2354,83674,182549].map {     Measurement<UnitDuration>(value: $0, unit: .microseconds) } // convert times from microseconds to milliseconds let milliseconds = times.map { $0.converted(to: .milliseconds)} milliseconds.forEach { print($0.value) } // output 0.001 0.009999999999999998 0.09999999999999999 1.0 10.103 2.3539999999999996 83.67399999999999 182.54899999999998 Or to mutate a measurement inplace var micro = Measurement<UnitDuration>(value: 1000000, unit: .microseconds) micro.convert(to: .milliseconds) print(micro.value) // output 1000.00
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’22