Category "ios"

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

-1103 Error Domain=NSURLErrorDomain Code=-1103 "resource exceeds maximum size" iOS 13

We are facing the following networking error when the response is somehow large(14kb) on iOS 13. [-1103] Error Domain=NSURLErrorDomain Code=-1103 "resource ex

App build with eas build crashes on start

I have a react-native app, I'm trying to test my app on ios&android ( testflight and playstore), app was build using eas build, but app crashes suddenly on

How to play video file from documentdirectory using avplayer

I am creating video player application in ios,if i store mp4 file in bundle resource or if i stream url it is working fine but if i store a file in document dir

Azure DevOps iOS and Android React Native Build Failing on Pod Install and Gradle Build Steps

I am trying to create CI/CD pipeline, for iOS and android, in Azure Devops for a React-Native app. With the android pipeline, whether I choose to create a yaml

SwiftUI: Translucent background for fullScreenCover

So technically I want to show a loading screen view. I'm using fullScreenCover. struct ContentView: View { @State private var isLoading = false

ViewContext not receiving updates from newBackgroundContext()

There is a similar question in stack overflow already but it doesn't work for me. There is a use case in my application where I have to observe the database ch

Swift 3: UITextView - Dynanmic height - Programmatically

I have a keyboardContainer class (Subclass of UIView / created programmatically so no storyboard) including a UITextView for the user to type messages in. It is