Category "swift"

Cannot use mutating getter on immutable value: 'self' is immutable error

I'm trying to reuse an older piece of Swift code, but getting an error 'Cannot use mutating getter on immutable value: 'self' is immutable error'. Xcode wanted

IOS Invoke SDK functions of SDK in capacitor plugin

Andoird was done without difficulty but I'm very new to IOS(OC/swift) Follow instruction of sdk doc, imported sdk into umbrella header Able to call sdk from mai

Class _PointQueue is implemented in both when I click on textfield... How can I resolve this issue?

I'm using xcode 13 and making a demo on coredata. objc[6188]: Class _PathPoint is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhon

ERROR: Runner.xcworkspace does not exist. error implementing google maps

I'm trying to implement GoogleMaps into my flutter project, it works fine for the android version, but with the iOS version I'm facing some problems. The error

ERROR: Runner.xcworkspace does not exist. error implementing google maps

I'm trying to implement GoogleMaps into my flutter project, it works fine for the android version, but with the iOS version I'm facing some problems. The error

building for iOS Simulator, but linking in object file built for iOS

Before I integrated Google Places in my app, I had no problem running it on simulators, but now I can run my app only on physical devices. I tried excluding arm

How to pass one SwiftUI View as a variable to another View struct

I'm implementing a very custom NavigationLink called MenuItem and would like to reuse it across the project. It's a struct that conforms to View and implements

Force AutoFill Save Password dialog programmatically

I setup Password AutoFill in my iOS 14 app. The app uses multiple tabs. Associated Domains are also set up. All works as expected. I have a Test button below th

About using Swiftz library issues(Functional programing)

Recently I'm learning functional programing using swift programing language, and found a library named Swiftz, I found a very strange way to call function and w

How to set a known position and orientation as a starting point of ARKit

I am starting to use ARKit and I have a use case where I want to know the motion from a known position to another one. So I was wondering if it is possible (lik

UIPageViewController swipe ignores SwiftUI's navigationBarHidden(true)

I'm creating a SwiftUI app that needs a slider with hundreds of pages. Since there's no first-party solution that fits my needs, I've adapted UIPageViewControll

Open multiple previews at the same time in SwiftUI

I know we can open multiple previews of different screens at the same time in SwiftUI. Can anyone help me with the steps to achieve that?

iOS Charts - Bar Chart repeating labels on X axis

I have made a bar chart with 6 groups and I have manage to hack my way into centering them exactly below each group. Now, the problem is that the value inside o

This SwiftUI animation should only fade out. Why does it move to the right?

I'm having a hard time understanding why this happens. I reduced the problem to its minimum expression. I have a single Text view, that when removed, should jus

Save string to the NSUserDefaults?

How to save a string into the NSUserDefaults?

SwiftUI: How to make TextField become first responder?

Here's my SwiftUI code: struct ContentView : View { @State var showingTextField = false @State var text = "" var body: some View { return

Find all available images for Image(systemName:) in SwiftUI

Where can I find all the system images that are available in the initializer Image(systemName:)? I've only been using "chevron" and "star.fill" so far, as disco