Category "ios"

Nativescript-audio not working on iOS device

I've used this plugin to record audio and play recorded audio. https://github.com/bradmartin/nativescript-audio When I build both iOS and Android platforms, it

SwiftUI edges visible after using overlay

I'm trying to create rounded edges in one of my views using overlay. .background(Color.gray.opacity(0.2)) .overlay( RoundedRectangle(cornerRadius: 10)

UIDate Picker valuechanged does not update the first spin, but does every spin after.. iOS

I have a UIDate Picker embedded in a static TableViewCell and at the moment I disabled most of the code except the code responsible for the date picker. I'm us

How to Use Custom yolov4 weights in iOS app

I following these steps: Obtained YOLO v4 weights after training on my custom dataset Converted weights to TensorFlow checkpoints Converted Tensorflow checkpoin

Xcode 13 crashing when adding a dictionary to the Info.plist from a target

Xcode Version 13.3 beta 3 (13E5104i) or Version 13.2.1 (13C100) When I add a dictionary to the Info.plist file from the Info tab in the project (for example wit

SwiftUI Get Coordinates of TextField or any View

I'm struggling to find a way in SwiftUI to get the x,y coordinates of the origin of a TextField (or any view). I can certainly provide a position or offset to m

Integrated Form Doesn't Move When Text Fields Are Selected

I have embedded a ScrollView within a UIViewController which contains multiple text fields that will act as a simple form to collect user data (Name, email, etc

Integrated Form Doesn't Move When Text Fields Are Selected

I have embedded a ScrollView within a UIViewController which contains multiple text fields that will act as a simple form to collect user data (Name, email, etc

How to underline a UILabel in swift?

How to underline a UILabel in Swift? I searched the Objective-C ones but couldn't quite get them to work in Swift.

Firebase dynamic link won't open Appstore when the app is not installed

I have set up the Firebase project and dynamic link. Tapping Firebase dynamic link while the app is installed: directly open the app, both on iOS and Android. T

Xcode: failed to get the task for process

I've run in release mode my app on a iPhone with Xcode 4. Everything worked great until when I switch to the simulator and I switched back to the iPhone. After

SwiftUI: How to center a view vertically and horizontally inside of a container view and put something under it

I searched stackoverflow, but unfortunately didn't find a solution to this particular case. I try to display following scenario: a container view a Text that

NavigationView in iPad popover does not work properly in SwiftUI

I have the following code that displays a popover when a button is tapped: struct ContentView: View { @State private var show = false var body: some

How to create a delay in Swift?

I want to pause my app at a certain in point. In other words, I want my app to execute the code, but then at a certain point, pause for 4 seconds, and then cont

How to change the order of list of in-app purchases in appstore app information section?

I have more than 20 in-app purchase subscription plans inside my app. I want to show few selected plans inside the Appstore information section and also I need

Constraint "equal heights" for views of different sizes in iOS?

I saw a lot of similar questions but they are all for situations with equal views. In my case I have a vertical stack of views: And they should keep proportio

Apple Push Service certificate is not trusted

I have recently created an Apple Push Service certificate on my M1 mac mini. In the Keychain, it says the certificate is not trusted. I have installed the Deve

How to convert hexadecimal string to an array of UInt8 bytes in Swift?

I have the following code: var encryptedByteArray: Array<UInt8>? do { let aes = try AES(key: "passwordpassword", iv: "drowssapdrowssap") encrypt

Image.network throw error even after defining errorBuilder in Flutter

I am facing some issues with loading images from URLs in Flutter. Here is my code: @override Widget build(BuildContext context) { return ClipRRect(

Unable to add a source with url `https://cdn.cocoapods.org/` named `trunk`

I'm building an app with capacitor for ios. When I launch the command 'npx cap sync ios' (which launch pod install) and I get this error : ✖ Updating i