Category "ios"

Blank Map with Mapbox and SwiftUI

I try to use Mapbox with SwiftUI. I applied this answer https://stackoverflow.com/a/56551675/5653544 and also followed the mapbox tutorial. So I have a MapV

AppIcon is not displaying on SignIn with Apple login pop-up

This application is for iPhone only. This project is in flutter and AWS Cognito is used for social login. check this documentation AppIcon is not displaying in

Listen for documents just when actually added to collection - swift

I have a collection on Firestore and I listen for changes like this: func createMatchesListener(){ let db = Firestore.firestore() guard let current

didUpdateLocations never called

I'm trying to get the user's location. To do so I have set the following property in the info.plist : I have also added the following code in my viewDidLoad

Reading Firebase Auth Error Thrown (Firebase 3.x and Swift)

I'm having trouble figuring out how to read the FIRAuthErrorNameKey in the new version of Firebase. The following is what I have so far, but the "let errorCode

Does Firebase Cloud Messaging support VOIP pushkit services?

Does anyone has an idea about Firebase Cloud Messaging support VOIP pushkit services. If yes then can someone please do provide guidelines for same. Same thin

SwiftUI how to align the view‘s leading to the most super view’s leading?

I’m new to SwiftUI and I’m making a widget. The default code included a text view which is both x-centered and y-centered in the super view(which I

Toggle select / deselect state of a UICollectionView Cell on tap - Swift

So first of all i've been stuck on this for a few days and spent a full day reading and trying many options on Stack Overflow already but non to my success Wha

Network requests in Flutter app on physical iOS devices are slow

I am working on a cross-platform app using Flutter, for Android, iOS and Web. For some reason though, network requests on iOS are very slow. The app works fine

SwiftUI - How can I blur the default background color of a view?

no code to show here, but I would like to know how it may be possible to do this. I have tried to use .blur(radius: (20) on a view, but it tends to blur the

Get AVAudioPlayer to play multiple sounds at a time

I'm trying to get multiple sounds files to play on an AVAudioPlayer instance, however when one sound plays, the other stops. I can't get more than one sound to

swift - Remove white spaces from var(UITextField input) doesn't work

I'm new to swift, but from ObjectiveC background, I tried to get an input from textfield into a var, on a button click. Now, when I tried to remove blank space

ARKit -[UIView setAnimationsEnabled:] Performing any operation from a background thread on UIView or a subclass is not supported

I have a ViewController that has a collectionView inside of it. I display the contents of the collectionView's cells inside an ARSCNView. When I set the ViewCo

SwiftUI: How do I "zoom in" to a specific CardView on a tiled interface?

I am trying to build a tiled interface out of CardViews. I want the user to be able to tap on a Card and have that Card expand to take up the available space,

iOS App was building fine yesterday, but it won't build today

Yesterday I pushed my first Flutter app to TestFlight in the App Store. While the app was running okay on my iPhone 5 and my iPhone Xr when I build directly to

How can I have onclick functionality for my CollectionView cells?

I want to make it so that when I tap on a CollectionView Cell, it segues to another view. I also want to pass a user ID to this view so I can query the database

Is there an error prone way to exclude certain properties from struct during equality comparison without writting our own == function?

We like the auto equality behavior of struct, by just simply conform Equatable protocol. Sometimes, we would like to exclude some properties out from struct equ

iPhone - Detecting eSIM card availability

I want to detect whether an esim card is used on my iphone, note that it is not a sim card and needs to be distinguished from a sim card. I searched a lot of in

Why do input type="date" and "time" load blank on mobile devices even with a value set?

I'm having an issue where I have two inputs of type date and time that have the value attribute are showing up as blank input boxes. Example: <input type="da

Animating CollectionView cells like iOS Photos app Years/Months/Days picker?

I can't understand what Apple is using here in the iOS Photos collection view. How do they transition the collection view when using the Years / Months / Days /