Category "ios"

APNS device token not set before retrieving FCM Token for Sender ID - React Native Firebase

I have been following this tutorial to set-up Remote Push notifications on my react-native application using react-native-firebase Version 5.2.0. After I config

SwiftUI TextField with formatter broken when built with Xcode 13.3?

It looks like Xcode 13.3 broke the TextField with formatter. In example below the Text should show the value entered in the TextField, which works fine when bui

How to view PDF from Firebase Storage - SwiftUI PDFVIEW

I am having some issues trying to display a PDF which is stored in Firebase Storage in my SwiftUI app. I have successfully done the following; Uploaded a PDF fi

A click in iOS Safari triggers a "hover state" on element underneath where you tapped

On iOS Safari 11, if I have a <div> positioned over an element that has a :hover effect, and the <div> has an event that makes it disappear when cli

Segue To UIViewController From SwiftUI View

I am working to implement some SwiftUI content into my existing app. I currently have a UIViewController, which hosts a MTKView for camera preview. I have cre

Can I use MVVM without data binding?

I am trying to use MVVM. Upon reading some blogs on MVVM, I found them using data binding techniques like Rx, KVO, Boxing etc. Following are my classes for vali

SwiftUI - Animations triggered inside a View that's in a list doesn't animate the list as well

I have a List that's displaying two Views of the same type. When you tap on one of the views, they change their height with an animation. However, the List tho

How to hide header and footer in WKWebView using Js and ios-14

How to hide header and footer in WKWebView in swift in IOS 14 I am using below code for loadiing thr website inside webview. webview.load(URLRequest.init(url:

How to get the iPhone's screen width in SwiftUI?

I want to resize an Image frame to be a square that takes the same width of the iPhone's screen and consequently the same value (screen width) for height. The

react-native-video onLoad onProgress not working IOS

I have used react-native video for playing audio files, it is working fine on android , but on ios it is not able to fire onLoad and onProgress functions which

Firebase Dynamic Link on getInitialLink in iOS (using Flutter)

I have the following code in my application: For creating the dynamic link I have: /// Function that creates a DynamicLink for a [SingleFashionItem] using [Fire

SwiftUI Emoji Keyboard hidden with ScrollView

When I try below code and show Emoji keyboard, keyboard will hide with Emoji keyboard horizontal scroll. I applied "keyboardDismissMode" to make keyboard hide w

Firebase Dynamic Links stop working after IOS app Transfer to new Developer Account

Our app had dynamic links up and running in the AppStore, but we had to transfer the app to a new developer account. After the transfer dynamic links no longer

safeAreaInsets in UIView is 0 on an iPhone X

I am updating my app to adapt it for iPhone X. All views work fine by now except one. I have a view controller that presents a custom UIView that covers the who

SwiftUI: Sheet cannot show correct values in first time

I found strange behavior in SwiftUI. The sheet shows empty text when I tap a list column first time. It seems correct after second time. Would you help me? impo

fixing Memory Issue in Swift

I'm having a memory issue while pushing/segueing to certain UIViewControllers [ChallengePrivacySettingViewC]. All of component of the ChallengePrivacySettingV

Swift - AVFoundation capture image orientation

I have a custom camera which takes photo in portrait mode. My issue is that if i try to take a photo in landscape and save it then the picture is still saved i

How to convert Any? to Data in swift [duplicate]

I need to convert from type Any? to Data. something like this func getItem(item:Any?) { let data = convertToData(item) }

How to check internet connection in React Native application for both iOS and Android?

I have a React Native application and I'm seeking to add functionality that checks if there is an active internet connection when the app first starts up, and c

Error message: Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffeead03e18)

I'm creating an app and I get this error: Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffeead03e18). Whole code runs without any errors, it's just when I try to