Why does this closure code throw an error when not using a capture list? – Ios swift
func biggerOne(_ a : Int, _ b : Int) -> Int? { if a == b { return nil } else if a > b { return a } else { return b } } var someClosure : (Int, Int)…
func biggerOne(_ a : Int, _ b : Int) -> Int? { if a == b { return nil } else if a > b { return a } else { return b } } var someClosure : (Int, Int)…
I am using Image Picker to select an image from the gallery. When I don't have any images uploaded, after I add one image, this pop-up is appearing as shown below. If I press "Select More Photos...", the image or…
I am currently developing the login aspect inside a custom browser on ios. I want to open the keyboard when a user clicks on an input element. When an input element gets clicked, I set the 'autofocus' attribute for that…
The ios app targets ios 12 and contains multiple schemes. Since last week, I am getting the following build rejection emails from apple: ITMS-90893: Missing required icon - The bundle does not contain an alternate app icon for iPad of…
Im researching Swift features and have the Question if there is a Hot Reload Feature or something similar like "instant run". https://developer.apple.com/xcode/swiftui/ On this Page they say: "Xcode includes intuitive design tools that make building interfaces with SwiftUI as easy…
Currently, our app provides a backup functionality to user, where she can perform snapshot backup of app database. We are using migratePersistentStore to achieve such functionality. After running migratePersistentStore, we will execute other I/O operations. Some of the I/O operations…
I have a class with two variables depending on each other. If one variable changes it should change the other and vice versa. I am using the Combine framework in iOS Swift. So with sink I am listening/subscribe to changes…
I am having a vector image, downloaded from phosphor-icons: I have downloaded .svg version of an icon. When you open this vector file in image editor, you see that it has 192x192 dimensions. Which I guess its not relevant at…
I'm creating a transparent List with transparent rows and section headers. But as soon as the rows slide under the section header, it automatically features a background blur. I understand the sentiment, but would like to opt out. Did anyone…
It seems that with the update of iOS 15.4 (March 14th, 2022) the state updating (SwiftUI) in a CarPlay app has been broken. I have simplified my code to the example below. Please note this was working in iOS+CarPlay 15.3.…