I want my @StateObject to be deinitialized as soon as possible after I navigate back, but it seems that the object is held in memory. "Deint ViewModel" is not b
Is there a way to force macOS File Provider Extension to re-enumerate items for given parent container? I am aware that we can signalEnumerator(for: .workingSet
In our code, we found a bug from not writing the alphabet correctly. Instead of "0123456789abcdefghijklmnopqrstuvwxyz", we had "0123456789abcdefghijklmnoqprstuv
Is there any way to prevent onReceive from firing when the view initially loads when the variable I'm trying to receive is a @Published property of an @Environm
I am looking to take an Integer in Swift and convert it to a Roman Numeral String. Any ideas?
I am looking to take an Integer in Swift and convert it to a Roman Numeral String. Any ideas?
I need on iOS with Swift to: Generate a Diffie–Hellman key pair with a pre-agreed modulus P and a base G Compute a shared secret with a local private key,
I'm new to this and currently building an AR-related application, on the old version I stated this let results = self.hitTest(screenPosition, types: [.featurePo
I have an image grid. Each image on tap should push a view on the NavigationView with the image details. The navigation link works as intended, but when I press
Consider the following example with a list and a button wrapped in a HStack that opens up a sheet: struct ContentView: View { @State var text: String = ""
The iOS 14 SwiftUI app I am developing has two ways of importing the audio files it plays: users can open a UIDocumentPickerViewController and select an audio f
I used the following code at a UICollectionViewController override func viewDidLoad() { self.collectionView!.alwaysBounceVertical = true l
Problem: The declared static let sharedInstance is not accessible from Objective-C code when building the main app target. Code: @objc public protocol Manag
It is possible to know the name of a struct in swift ? I know this is possible for class: Example class Example { var variable1 = "one" var variable2 =
In an app I'm developing (SwiftUI for iOS13 and above), I have imported a custom font, and I load the font using the following method": func getDigitalXFontOfS
With Swift is it possible to create a dictionary of [String:[Object]] from an array of objects [Object] using a property of those objects as the String key for
Problem: The declared static let sharedInstance is not accessible from Objective-C code when building the main app target. Code: @objc public protocol Manag
I wish I could do such a thing as seen in the image. I'm trying to use this piece of code but I'm not quite understanding how to fix it. I wish I could use it
The question here involves removing duplicate objects from an array: Removing duplicate elements from an array in Swift I instead need to remove objects that
I want to start by saying that I am new to SceneKit and playing with AR environments on iOS. I have a 3D model object, a van, as part of a Blender file(.blend)