Category "ios"

How to convert CMSampleBuffer to OpenCV's Mat instance in swift

I am working on an OpenCV project where I am taking input from iPhone native camera as CMSampleBuffer now I wanted to create Mat instance that is required in Op

Is it possible to remove title underneath iOS home screen widget?

Many users ask me, can you remove title underneath the widget? But as per Apple's design guidelines, we can't keep the app name empty or remove the home screen

Apple developer rejects my application in Test Flight

After pushing the application to test flight, I added a MobileTest Developer to check the app in test flight, but the application has been rejected in the Apple

SwiftUI - List Line Separator Inset like iOS Settings App

I'm trying to achieve the behavior that's also seen in in the iOS Settings App or for instance the Roborock App (see screenshots below). I'd like to go for an I

App rejected due to UIRequiredDeviceCapabilities key

I just developed an iOS app which is used WebView features by Flutter framework and after several submitting to upload it into App Store, it was rejected due to

how to archive UITextView and UITextField data binding

problem description: After currently changing the attribute of UItextView, when I change the content of UITextView by entering text in UITextField, the f

KMM ios flow.combine throwing no event loop error

suspend fun heyStackOverFlow(): Int { val flow1 = flow<Int> { 1 } val flow2 = flow<Int> { 2 } return flow1.combine(flow2) { f1, f2 ->

Flutter error building for iOS "ld: framework not found"

I've been working for a few weeks on a Flutter app which I run on Android and iOS. It worked well until some days ago I upgraded the flutter version and some pa

SwiftUI Custom List Cell - disable horizontal padding/shrink in EditMode

I'm trying to create a custom List cell in SwiftUI, where the drag-icon in Edit Mode stays inside the cell. By default, the cell gets horizontally shrinked do m

SwiftUI Preview crash with await async iOS15 if returns a struct with UUID

I reduced to very simple code. If the struct has a Int is working, if there is an UUID the preview is crashing (it's working if I run on the simulator or real

Uitextfieldwith dashed line, focus, default dashed color lines in swift

I haven given spaces between chars with NSattributes.kern, need to change focus color of next char border when text enter, should be do with one textfield class

IOS Silent Remote Push Notifications not delivered to app

Need some help interpreting this: I have set the background modes and remote notifications in info plist. Looking at the console logs, message arrives to the ph

iOS - Failed to upload video file from swift to FastAPI server

I took the code for uploading the video file from this question, however, an error occurs. This is the code to select a video from an album: var videoURL: URL?

Can I schedule a single background task to run at sometime in the future on iOS

I need to queue a background task on iOS to run specifically 1 minute later, and to run only once. All I have found so far in the docs is running a periodic tas

Cannot get Alerts to show on iPhone no matter what way I code it and I have tried 4 different ways

Of these 4 methods mentioned, they all work in the simulator, but non of them work on the iPhone. Here are the pieces of code that come into play here. <List

Recenter the scrollview content Swift

I'm trying to recenter the scrollview view and move the frame, when the user current location goes to the out of the screen frame. Currently I have a PDF a

How can I make swift package management make offline? Every time I open a project, it begins downloading, which takes longer when the project is huge

Every time I open a project, it begins downloading, which takes longer when the project is huge.

`Task` blocks main thread when calling async function inside

I have an ObservableObject class and a SwiftUI view. When a button is tapped, I create a Task and call populate (an async function) from within it. I thought th

swiftui matchedGeometryEffect with scaleEffect problem

Why when opening and closing the viewModel (color.green) , the circle tremble and vibrate and the model becomes above the circle when moving when i change the v

swiftui matchedGeometryEffect with scaleEffect problem

Why when opening and closing the viewModel (color.green) , the circle tremble and vibrate and the model becomes above the circle when moving when i change the v