in MapBox documentation for android there is LatLngBounds, but for iOS there are nothing, is there any way todo it for iOS
I know that Strings in Swift don't have Int indices as Swift supports Grapheme Clusters. But, when coming to Collections in Swift, Array supports Int indices bu
I am getting a worrying amount of EXC_BREAKPOINT crashes in crashlytics for my iOS swift app. I tried fixing the bug by looking at the method 'populate(user:wi
//First way var myVar: String = " Hello" print(myVar) //Second way var str = "Hello" print(str) I get the same output no matter which of the two I use. What's
For my school project, i want to create a MacOS application that communicates with my Arduino using a serial connection. I tried 2 different library (SwiftSeria
I have an if-else statement where I am checking if the value coming from user defaults is nil or not like this: if defaults.bool(forKey: "abcd") != nil{
I have two Circles to show a circle progress bar, one of these is the progress the another one is the background, but the progress circle doesn't show in my iPh
I am currently trying to show Routes in my app, but I get [UserSession] maps short session requested but session sharing is not enabled in the console. I separa
I have just updated to XCode 11.4 and some of my code has stopped working. I have some @Published struct variables in an ObservableObject. Previously, when I up
In Swift you can define default values on a struct that can be overwritten on initialization: struct myStruct { var a: Int = 1 } var instance1 = myStruct()
I am trying to add a "Drag and Drop" gesture / function to my SwiftUI Mac application. I want to drop files from my System/ Desktop into my Application. It is
I recently saw that Swift had introduced concurrency support with the Actor model in Swift 5.5. This model enables safe concurrent code to avoid data races when
I am adding a translate text feature to my app. I have the text and run the initial setup, but this error keeps coming up. error: Error Domain=com.firebase.ml
I want to make my List inside a ScrollView so that I can scroll List rows and headers together. But I found that List inside ScrollView isn't working. It shows
I am trying to make the map in my app update its style URL based on the device being in dark-mode or light-mode. However I am getting the error below where I de
I am doing some iPhone automation and want to observe call states of ongoing calls. I implemented a listener to read the idevicesyslog and fetch log output of c
Using the PHPickerViewController, the result of the selected image will be displayed as a result. Can I set the order of the images? private func makePickerView
I have created a custom layout based on UICollectionViewCompositionalLayout that presents each section's items in a panel or card... ...here the blue area is
The goal is to have easy access to hosting window at any level of SwiftUI view hierarchy. The purpose might be different - close the window, resign first respon
I have an app that works well synchronizing the local core data records with a private database. I would like to make the CloudKit database a shared database an