Category "ios"

Programmatically Change multiplier of Alignment Constraint of Center X / Y

How can I programmatically change the multiplier in the simplest way? For Swift 2.0

Padding HStack in the top of any screen

I want to put an HStack which contains two Texts in the top of any device screen. the problem is when I use padding that I have to decide fixed size of padding.

iOS Observatory not discovered after 30 seconds. Error launching application on iPhone

I'm unable to debug a freshly created app on physical iOS devices when pubspec dependencies reach a certain size, because it causes the "waiting for observatory

Locale.current reporting wrong language on device

I'm trying to format currency values in an iOS app, and I'm using the current Locale settings on the device to use the appropriate currency formatting. In the

Animating 3 dots in swift iOS

I have a label and an image view. My goal is to have 3 dots animating infront of the label and to be at the foot of the label at the end as shown here I have b

UPI deep link issue - iOS

This link is not working: urlString = "upi://pay?pa=samplevpa@ybl&pn=Sample Name&am=1&cu=INR".addingPercentEncoding(withAllowedCharacters: .urlQu

New React Native project with old version of react native

I am trying to create a new react native project which should utilize an older version of react-native. The result I would like would be to do something like:

UICollectionView display 3 items per row

I have a UICollectionView created from storyboard, I want to have 3 items per row in the view. I managed to do that using the following: - (CGSize)collect

Rotate UIButton 360 degrees

I've been trying to run an animation that rotates my UIButton 360 degrees using this code: UIView.animateWithDuration(3.0, animations: { self.vineTimeCapButt

Prevent UIAlertController from dismissing on UIAlertAction

I am working on one of the application where i am promoting user for force update using UIAlertController in which i don't wanted to allow user to perform any a

iOS - APNS how to use loc_key in payload

I have a message string i want to localize before i let APNS send a message to devices. I wish i could see the json payload itself to make me understand the st

Xcode Source Control - Push local changes stuck on Loading

I keep getting this problem with Xcode source control. If I checkout a previous branch and then switch back to my latest branch, sometimes I can no longer push

How to get the Iphone type from simulator (IOS)

There are a lot of solutions to find out on which device out app is running. iOS: How to determine the current iPhone/device model in Swift? But running in th

MKMapView ignoring Safe Area on iOS 11 and iPhone X

I'm trying to migrate a app to iOS 11 and for days I'm stuck with one ugly UI bug after the other. This time: MKMapView. I have a bunch of buttons which I pinne

How to get battery life of Bluetooth Low Energy in Swift 4?

I am able to get a value for BLE battery life with the help of following questions: Read data from BLE device Reading a BLE Peripheral Characteristic and chec

UIAlertController Unable to satisfy constraints

I am converting all my UIActionSheet and UIAlertView with UIAlertController. My problem is when I try to present a UIAlertController of style ActionSheet. Here

SwiftUI Toolbar item getting clipped when back button is pressed

I've run in to a strange behavior in SwiftUI that I can't seem to work around. Given the following simple example app I experience this behavior: The toolbar it

Is there any way to load the GLTF file which is compressed by Draco?

I am looking for a way how to load the draco compressed .gltf on iOS. I am using GLTFSceneKit to render the gltf file which is exported by Blender. But if I com

How can I reset the username Apple Transporter uses?

I've been using Apple's Transporter app on my Mac to push our mobile builds to the app store. Recently, my company made account changes that requires 2FA with o

Setting UIView.isAccessibleElement to true disables clicking of subview in voiceovermode

So I have a custom view controller that displays a dialog with a couple of buttons. When the view appears I want voiceover to read out some basic information d