Post

Replies

Boosts

Views

Activity

Reply to Deadline for requiring Xcode 13 for submissions?
You should better check News and Updates. (Link shown below every page of the developer site.) App Store submissions now open for iOS 15 & iPadOS 15 Starting April 2022, all iOS and iPadOS apps submitted to the App Store must be built with Xcode 13 and the iOS 15 SDK. Unless the detailed date is announced, you should better take it as the first day of April 2022.
Sep ’21
Reply to Instruments
Please show as much info of the crash, all the message shown in the debug console, stack traces and your code. Generally Leaks is a tool to find memory leaks, not for finding the reason of crashes.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’21
Reply to Swift playground 5
I guess you mean the new Swift Playgrounds which can develop iPhone/iPad apps on iPad. It usually is referred to as Swift Playgrounds 4. You should visit this old thread first. Even for now that the first version of iPadOS 15 is released, Swift Playgrounds is marked with two stars in the iPadOS 15 page, which means ** Available late 2021. I'm not sure if it would be included in the future version of iPadOS 15, or released as a separate app in the App Store, but I do expect that the beta version of it would be available on the Apple Developer site when ready. so i want to know when the swift playground 5 came out and how can i update it Apple rarely reveals their future plans except on events such as WWDC. You should better wait on the Developer site watching the official announcements.
Sep ’21
Reply to Why Xcode 13 not available in Download on developer.apple.com?
I am curious to know why Xcode 13 is not available for download on the official site? In recent years, new Xcode had been available to be installed through Mac App Store first, and it was put in the More Downloads pages hours or days later. on my organization system App Store is not accessible for security concerns. So using the official website is the only option to download the latest Xcode - 13. Then you may need to wait for days. As far as I remember, you would not have to wait months. Or another option, make your organization change the security rule, if downloading the new Xcode is an urgent task for your organization.
Sep ’21
Reply to Round Double to 3 decimal numbers
@sykste, as I wrote, binary floating point number like Double cannot represent values like 5.02 nor .06 precisely. You may need to use Decimal or find a more suitable way of rounding for your purpose. Better start your own thread with detailed description (including your code) showing your purpose.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’21
Reply to Crash when compare 2 String many of times
I tried your code a few tens of times with 100 millions elements in contacts. It never crashed. So the number of String comparison does not matter. I guess it is a problem of multithreading, as it may be revealed only when huge number of elements involved. Anyway, you should better concentrate on the first thread of yours and respond to eskimo.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’21
Reply to Why are Cancellables in Combine called Cancellables
Why are they called Cancellables I'm not sure what would satisfy your curiosity, Cancellable is a very common naming when you can cancel on it. what is the advantage of using combine bindings over computed properties in SwiftUI. Have you watched the WWDC session video when Combine was introduced? Introducing Combine So across the Cocoa SDK you'll find plenty of asynchronous interfaces. Some you saw here like Target/Action, but there's a lot more, including NotificationCenter and lots of ad-hoc callbacks. These are API's that take a closure or completion block. All of these things have important and different use cases. But sometimes when you need to compose them together, it can be a little bit challenging. Using Combine, you can handle all the asynchronous data/event sources in a unified manner. That can be a big advantage for developers struggling to compose such different kinds of asynchronous sources. If you do not feel it an advantage, it may be better for you to stay on the ways like computed property.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’21