Category "ios"

Problem with animation-fill-mode on iOS when changing orientation

I've created an animation to move an element into view when the user clicks somewhere. The element is styled to be offscreen. When the animation is run, it move

Firebase authentication - refreshToken automatic refresh

I am developing a react-native application which will use firebase authentication, and I have some doubts about how refresh tokens should work. I am using the r

Weview doesn't shirnk when keyboard is appeared on IOS

Problem: The height of webview doesn't reduce when I open up the keyborad on IOS I used a KeyboardAvoidingView wrap my Webview like this <KeyboardAvoidingV

React Native: How to get upload speed and network signal strength?

I am currently tasked with developing an application that gives the user various information and details about his network connection using React Native. The ma

iOS launch screen for light and dark modes

I follow the instruction in RSP-12931: Native resolution not supported on iPAD Pro to create an iOS LaunchScreen for my Delphi app. Now, with iOS 13, the proble

expo location permissions work on android, but not on iOS

I have a react-native app that uses expo. The location permissions work on android, but not on iOS. On a real iPhone (iOS version 14.4.2), it does nothing. On a

Circle in SwiftUI doesn't show in my iPhone

I have two Circles to show a circle progress bar, one of these is the progress the another one is the background, but the progress circle doesn't show in my iPh

SwiftUI View not updating based on @ObservedObject

In the following code, an observed object is updated but the View that observes it is not. Any idea why? The code presents on the screen 10 numbers (0..<10)

is it possible to send an action request to a mobile phone?

So I have an AWS EC2 instance. When ROUTE_1 receives a request from a mobile phone, I want the RESPONSE to the mobile phone to achieve three things in sequence.

SwiftUI - is it possible to get didSet to fire when changing a @Published struct?

I have just updated to XCode 11.4 and some of my code has stopped working. I have some @Published struct variables in an ObservableObject. Previously, when I up

How to get Text width with SwiftUI?

I would like to underline a title with a rectangle that should have the same width as the Text. First I create an underlined text as below: struct Title: View

Latest version of Xcode stuck on installation (12.5)

I just updated my mac to macOS Big Sur, and am trying to update to the next version of XCode. It has been on 75-80% progress for hours: Also, when I go to laun

Can I use actors in Swift to always call a function on the main thread?

I recently saw that Swift had introduced concurrency support with the Actor model in Swift 5.5. This model enables safe concurrent code to avoid data races when

How to run react-native project in another port instead of 8081 IOS

I'm running react-native project in port 8081, i want to run another react-native project simultaneously in other port. I tried these npx react-native run-ios -

SwiftUI rotation animation has unexpected translation [duplicate]

I'm trying to animate a spinning "busy" image in a SwiftUI View using standard and consistent online tutorials. The image is square, should b

SwiftUI List inside ScrollView

I want to make my List inside a ScrollView so that I can scroll List rows and headers together. But I found that List inside ScrollView isn't working. It shows

Property initializers run before 'self' is available Error?

I am trying to make the map in my app update its style URL based on the device being in dark-mode or light-mode. However I am getting the error below where I de

Errors when installing cocoapods with gem

I am using macOS Mojave and when I try to install cocoapods using gem I am getting the following error. Building native extensions. This could take a while

iOS Observe Call State Logs via heard daemon (accessibility service)

I am doing some iPhone automation and want to observe call states of ongoing calls. I implemented a listener to read the idevicesyslog and fetch log output of c

How to access own window within SwiftUI view?

The goal is to have easy access to hosting window at any level of SwiftUI view hierarchy. The purpose might be different - close the window, resign first respon