I've seen a few examples of this but all of those seem to rely on knowing which element you want to count the occurrences of. My array is generated dynamically
Shortly after updating to Xcode 13.2.1 I started seeing some weird behaviour of breakpoints. When I run an app (in a simulator) some of my breakpoints change th
I am submitting a .xcarchive to the App Store via Xcode 13.3 but I keep on getting the following email error: ITMS-90562: Invalid Bundle - One or more dynamic l
I have been looking for the past couple of days on how to implement a filter to a UIImage by manually manipulating the brightness, contrast, highlight, shadows,
I'm trying to use UICollectionView to make a table, when I set it to vertical scroll, everything is working great. But when I set it to horizontal scroll, it a
I'm trying to remove the items Look Up & Share... from the UIMenuController. How would I specifically remove the two and keep my custom one. Here is what I'
I have an array of identifiable Training elements. Each Training element only has two properties, name and isRequired. What is the most straight-forward (Swif
I would like to override the '=' operator for a CGFloat like the follow try : func = (inout left: CGFloat, right: Float) { left=CGFloat(right) } So I cou
I have a view in SwiftUI that shows a WKWebView which is passed to the main ContentView using the UIViewControllerRepresentable class, implemented following the
I am developing a hybrid Android and iOS app using WebViews. However, I am struggling to return data from iOS app back to my Javascript. Below is how I setup t
I want to make a mix of virtual reality and augmented reality. The goal is I have a stereo camera (for each eyes). I tried to put two ARSCNView in a viewCotnro
I have just developed an app, but when running in the simulator the debugger console says: The app delegate must implement the window property if it wants t
I did this using while loops but I'm wondering if there's a way to do this with for loops. I'm trying to write this clean so I can write it on a whiteboard for
I'am using AVPlayer for playing local video file (mp4) in Swift. Does anyone know how to detect when video finish with playing? Thanks
How can I check if a key exists in a dictionary? My dictionary is of type [Type:Type?]. I can't simply check dictionary[key] == nil, as that could result from
I am using the TapGesture in SwiftUI for MacOS. TapGesture is only recognized on TouchInsideOut event, when releasing the press again. I want to call an action
Directory tempDir = await getTemporaryDirectory(); String tempPath = tempDir.path; In android native code, I use getCacheDir() How do i get the getApplicatio
I have an AnyObject type that can be String, Int or Bool type. I need to distinguish them. This code tries to do so, but it considers Bool to be Int: import C
I want to delete an element from an array that I am displaying as a list using a ForEach, but I also need to send a HTTP request to a REST API and I need to put
I have an AnyObject type that can be String, Int or Bool type. I need to distinguish them. This code tries to do so, but it considers Bool to be Int: import C