This questions pertains to macOS, not iOS. Note that this question is being reported as a duplicate of this question. The answers on that page pertain either t
I want to create a random pixel generator in swift. How would I be able to create something like the below codes in swift? Java program to demonstrate creatio
So i am trying to monitor the connection status by closers : func reconnect(success: @escaping () -> Void, failure: @escaping () -> Void) { let ma
I have viewController with tableView inside it. this tableView has many sections and rows. when I try to add a new row in the last section using TableView.inse
I suspect this is a finicky configuration issue that I'm getting wrong with Document Type / UTI declarations in my Info.plist, but have tried several things and
After unsuccessfully trying to get iCloud document storage to work on the watch Watchkit Extension Cannot Read from iCloud I tried to simply use the keystore.
Is there a standard way to bind, say, a TextField to an associated value of an enum? So, given this: enum Choice { case one(String) case two(String) } C
How to flip an UIImage vertically (up/down)? This is a question that is asked before... Flip UIImage Along Either Axis How to flip UIImage horizontally? How to
I am trying to create an enum of a struct that I would like to initialize: struct CustomStruct { var variable1: String var variable2: AnyClass var
I'm using Swift and Firestore database to implement an app like Twitter. I want to add sweet (it's like tweet) when button is clicked to the database. And then
I have a project with target frameworks. MainAppTarget FrameworkA FrameworkA is the only one to use a certain pod, hence in my pod file I have something like
macOS Monterrey 12.0.1 (21A559) Xcode 13.3.1 (13E500a) iOS app deployment target 10.0 I have been working with this app for a few years now, when the Apple auth
Is it possible to use more than one coreLocation service at the same time? For example, significantLocationChange and visits together
In my SwiftUI App, i used a WKWebView to update some html tags from native side, using SwiftUI TextFields and a TextEditor. To get the communication working, i
I'm trying to incorporate Stripe into an iOS app using Firebase Functions. I'm following the Stripe documentation for "Accepting a payment" in Swift with Node b
I tried to position the Tile Map so that the bottom left of it is attached to the bottom left of the screen. Below is the code i tried to use: func setUpSceneW
When i try to decode the raw h264 stream , CVBuffer gives me nil on callback, and this only happen on the real device(iPhone , iPad) and not on the simulator. A
On button click, I want to create tooltip. and now I am getting a rectangle. How do I add a pointer as below image? Expected: Current: Following is the co
Is there a way to check if a user's iCloud account has two-factor authentication enabled? I am adding iCloud functionality to my app using CloudKit and for add
I have a requirement to make WhatsApp calls from my application. When I click the mobile number in my app then it should redirect to WhatsApp and initiate voice