Category "ios"

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

Select CSS Parent `selector` in iOS Content Blocking

I am setting up some content blockers (https://developer.apple.com/documentation/safariservices/creating_a_content_blocker) The HTML I am testing on looks somet

SwiftUI - How to close the sheet view, while dismissing that view

I want to achieve the function. Like, "Look up" view that is from Apple. My aim is when the sheet view push another view by navigation, the user can tap the na

iOS keyboard: How can I start with a disabled done/return/go button on the keyboard and KEEP it disabled until the validation requirements are met?

I've got a text field delegate setup which disables/enables the done button on keyboard when certain conditions are met (between 5 and 15 characters, not just w

Build error while building Flutter in iOS

When I run flutter build iOSI get the following error: Steps I've tried: flutter clean flutter pub get Deleted Podfile.lock Note: Android builds successfully

Flutter: Id does not exist when try to run my code

I have a Flutter application and when I try to run my code, it throw a warning that says the id does not exist. How can I get out of this warning? ======== Exce

SceneKit: How to constrain movement of a node to one axis locally, not the entire world

It's very easy to prevent movement of a node in one axis (X, Y, or Z) being moved by other forces with an SCNTransformConstraint.positionConstraint in world spa

Build error while building Flutter in iOS

When I run flutter build iOSI get the following error: Steps I've tried: flutter clean flutter pub get Deleted Podfile.lock Note: Android builds successfully

Error when downloading file from Flutter Amplify Storage

I get the error below when downloading an audio file from Amplify Storage on an iOS device, both Simulator and a device. It all works perfectly fine when doing