I have a color asset catalog in Xcode 13 that defines a set of colors in both light ("Any") and dark ("Dark") variants. For example: I would like t ...
I have a color asset catalog in Xcode 13 that defines a set of colors in both light ("Any") and dark ("Dark") variants. For example: I would like t ...
. Answers to this question are eligible for a +100 reputation bounty. K ...
I noticed that since Swift 5.5 some UI based classes changed their behavior in how they handle concurrency. I have a specific framework that encapsula ...
So long story short I need to get x to the power of y which are both doubles Problem is I keep getting 0 So why is this the case and how do I make ...
As the question states, compiling and running the 2 files below makes the compiler hang indefinitely. Here are the CLI commands I have tried: swiftc * ...
My project after compiled from Xcode 13.1 and in simulator iOS 15.0 have issues with table view. Table view cells gets removed completely for that ar ...
As per the new Structured Concurrency in Swift, we can await a API call which is done in an async context, But I want to make multiple API calls simul ...
I have a simple piece of code: This compiles completely fine. However, if I replace the task with this: It doesn't work, and gives me the error ...
I am using the new Swift 5.5 features to create an async function: But when I try to call this method from Objective-C code, it doesn't show up in ...
I'm running Xcode 13.1 / Swift 5.5.1. I have a package that has some unit tests in it; the Package.swift file uses swift-tools-version:5.5. When I b ...
Let's say I have the following functions. Even though marking first function as async does not make any sense as there is no async work it does, bu ...
I have this model in Swift import SwiftUI import FirebaseFirestoreSwift import FirebaseFirestore struct Tweet: Codable, Identifiable, Hashable { ...
In this case the async function reads a file and returns the parsed contents. In my view I want to load the contents off of the main thread, and then ...
In a ViewModel, I'm currently using callbacks to 1. make an API call and set data1, 2. use data1 in a second API call to set data2, then use data2 in ...
I have a problem when I want to refactor my API requests to the new async / await functionality in swift 5.5. My code is (I remove all credentials an ...
I am getting the below error when I build my iOS project in Xcode 13.0 for Simulator 15 with Swift 5.5 ...
I'm new to Swift, coming from JS, and I've started to build an iOS app. Initially I went down the road, using Promise Kit for the async stuff, as it ...
I have set of uitableviewcell . I want to apply border color for the following conditions Applying top border color for firstcell And bottom border co ...
I tried to make use of the new Async/Await features in Swift 5.5 and tried the following code Every time I execute this, the try await URLSession.s ...
I am scratching my head on new async/await pattern in Swift 5.5 announced in WWDC 2021 and there seems to be lot of learning involved and not as easy ...