Category "ios"

Using UISheetPresentationController in SwiftUI

I'm really struggling to wrap the new iOS 15 UISheetPresentationController for use in SwiftUI (for a half-modal). I understand that I should inherit UIViewContr

AVAudioFile write not working Swift iOS 14

I have the following function: private func getPCMBuffer(utterance: AVSpeechUtterance, completion: @escaping (Result<AVAudioPCMBuff

google_maps_flutter crashes on ios device with the error "-[__NSCFString objectForKey:]: unrecognized selector sent to instance 0x2808f4380"

I have the google_maps_flutter 2.1.0 and flutter 2.10.3 running. While opening the map, the app crashes and shows the following error log. Could anyone point ou

'async' call in a function that does not support concurrency swift ios Xcode async/await

I'm trying to use async/await with Swift 5.5. I have my async function, but whenever I try to call it, I get this error: 'async' call in a function that does

Alternative of WKScriptMessageHandler for WKWebView and native communication?

Is there any alternative way other than WKScriptMessageHandler to communicate from Javascript to native code?

How to get bit rate from MPMediaItem

I'd like to get a song's bit rate, for example 256 kbps, from a MPMediaItem retrieved via MPMediaPickerController. Is this possible? I tried to get it via: AVAs

image_picker maxDuration not limiting videos in gallery selection (Android or iOS) - Flutter

Utilizing image_picker: ^0.7.5+3 Using iPhone 12, iOS 14, Android Google Pixel, Android 10. Code: var pickerFile = await ImagePicker().getVideo(source: source,

How to get notifications click/open updates in RNFirebase

I am using RNfirebase to push notifications to my React native application. When the app is in background I am trying to send a notifications which is working f

Background Task to Fetch HealthKit Data

I am using iOS 13 where Background Task framework there. My Query is Can it will be possible to fetch HealthKit Data in Background Mode. Can i send these Healt

How do I return string from fastlane to jenkins groovy variable?

Have a lane in fastlane as lane :ipa_path do |options| “<ipa path>.ipa” end How to store string returned by ipa_path lane in groovy script v

Siri not "replying" to PlayMedia intent after playback begins

I have an audio based test application that I am adding Siri support to. The application currently responds to the PlayMedia intent and correctly plays the desi

How to switch the statusBarStyle with the new syntax to remove deprecated warnings?

how am I supposed to change this piece of code? The current solutions for this problem either cover older iOS versions or are unanswered. This is the line: UIAp

How to upload video chunks to server and download them in real time in iOS

I'm creating an iOS app where I want a user to be able to live stream a video, however, users who join the live stream after it starts, start watching the strea

MVVM in TableView Cell

hope you're well, i am working on an app which uses TableView for showing feeds to user using ViewModel and my ViewModel contains a variable which contains data

Paste from clipboard not working with React Native on iOS simulator

As the title says, I'm working on an app that has an input text and when I tried pasting text I had on the clipboard, it wouldn't do anything, but it shows the

ios shortcuts : Extract dictionnary key from choose list

I have a dictionary as an entry for a list of choices : I can select the desired item from the list but I don't know how to extract its key ? Actually, when I

Is it possible to load a 24-bits BMP with a native iOS API?

I'm programming an app for a device whose API give us a const char* to an array of bytes that correspond to the pixel data of a BMP with a colour depth of 24-bi

React native html to pdf

I am using this code and it works fine in simulator as I am getting a location and can get pdf file from there async createPDF() { let options = { html

Is there a website fix for images not displaying after ios update to 15.4.1

A recent update to ios 15.4.1 has resulted in some images not displaying on my (Wordpress) website, for users only on affected ios devices. A 'fix' for this iss

Flutter SafeArea: avoid notches, but ignore rounded corners

Is there a way to detect and avoid notches in a phone's screen (for example, the camera notch in an iPhone X), but ignore a screen's rounded corners? For exampl