Category "ios"

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

[UILabel copyWithZone:]: unrecognized selector sent to instance

I feel like I'm banging my head against the wall here (and I'm ready to do that, frankly). I'm trying to set a background to the view. Background I need to se

iOS WKWebView not showing javascript alert() dialog

I am having some trouble getting a WKWebView in iOS 8 to display an alert dialog that is called from Javascript. After creating a standard WKWebView and loading

How can I log each request/response using Alamofire?

Is there a way to log each request / response using Alamofire (something similar to AFNetworkActivityLogger) ? I am aware of Printable, DebugPrintable and Outp

what is the difference between @compatibility_alias and typedef use on @class in Objective-C

Is there any difference between : @compatibility_alias AliasClassName ExistingClassName and typedef ExistingClassName AliasClassName;