Category "ios"

AVFAudio - Is it safe to perform file copy immediately after AVAudioRecorder.stop()

We start a voice recording via self.avAudioRecorder = try AVAudioRecorder( url: self.recordingFileUrl, settings: settings ) self.avAudioRecorder.record

Xcode 13 is missing settings for location services under iOS15

I updated to Xcode 13 last night. Today I find that if I run the simulator for iOS 15 there is no location services settings under privacy, yet on my physical i

Change UIScrollView's frame programatically (Swift 5)

How can I change the height of the frame based on the size of the subview programatically? scrollView.frame = CGRect(origin: scrollView.frame.origin, size: CGSi

React Native (0.63) Alert disappear automatically in IOS

I am using RN 0.63 and i am facing issue in React Native core alert.It popup and disappear automatically with second.I want alert should disappear when i click

How to use completion block for UIView.animate()?

I'm working on a project to learn animations and am having trouble using the completion block for the UIView.animate(withDuration:) func. MY animation is a shoe

SwiftUI: dismiss List searchable keyboard?

I have a view that uses searchable. I would like do dismiss the keyboard programmatically if user starts scrolling on the List. Same behavior as you see in the

Button with double action (tap & long press) in SwiftUI

Is it possible in SwiftUI to set a button with an action on tap and a different action on long press ? I have tried this: Button(action: { self.handleButton

How to change PageTabView programmatically in iOS 14, SwiftUI 2?

I'm exploring new things came in Xcode 12 and SwiftUI 2.0 I have created a pageview onboarding screen with TabView and PageTabViewStyle in Xcode 12, iOS 14, Swi

How to specify paths for different components in Apple-app-site-association

I have a list of deeplinks that don't require a path. However, only one specific component requires a path. How do I format this? "applinks": { "details"

How to build a REACT Native app automatically using GitLab

I am looking for a way to build the APK of my React Native App automatically using a GitLab pipeline, I can't seem to find a solution on the web that does not u

Interacting with the view controller behind

I know there are several posts on SE relating to this issue but I couldn't get around them to find a proper solution for my situation. I've a map view inside a

Is it possible to request change of the AdMob app ID?

I have developed an android application and integrated AdMob using Flutter framework and deployed it. Suppose someone revealed my app ID and does malicious traf

How to retrieve PHAsset from PHPicker?

In WWDC20 apple introduced PHPicker - the modern replacement for UIImagePickerController. I'm wondering if it's possible to retrieve PHAsset using the new photo

How to send an array of JSON object as a parameter value in request body ios swift

Hello I'm using Invoice generator api JSON Input https://invoice-generator.com/developers#json-input In the documentation of the API it is mentioned that the it

SwiftUI | Using onDrag and onDrop to reorder Items within one single LazyGrid?

I was wondering if it is possible to use the View.onDrag and View.onDrop to add drag and drop reordering within one LazyGrid manually? Though I was able to make

SwiftUI - 2 Handle Range Slider

Is there a way, using SwiftUI, to create a Slider with 2 handles? I'm working on a project that that requires settings a low and high point for a random value t

SwiftUI app life cycle iOS14 where to put AppDelegate code?

Now that AppDelegate and SceneDelegate are removed from SwiftUI, where do I put the code that I used to have in SceneDelegate and AppDelegate, Firebase config

'FirebaseCore/FirebaseCore.h' file not found while building for Release Mode in Xcode Version 11.5 (11E608c)

I am able to run the app in Debug mode in XCODE and simulator without any errors. But when I build for Release Mode the build fails with below 2 errors: 'Fireb

SwiftUI: Button with image got gray border on real iPhone but works fine on simulation mode

I'm trying to make simple app, the app seems working well on simulation mode, but test on my iPhone the button looks different from simulation iPhone, link the

Update a provisioning profile using App Store Connect API. How?

I would like to re-generate a set of provisioning profiles using App Store Connect API. There are methods for creating new profiles, deleting existing, but I se