Category "ios"

IOS simulator is not open

IOS simulator is not open and shows only a black screen how can I open this simulator, I am using the latest Xcode. I try to Erase all simulator data but can't

Custom SessionManager in Alamofire 4.7 cancels immediately

Hi I'm trying to create a custom SessionManager in Alamofire in order to change the default timeoutIntervalForRequest value. I'm using the code below: let co

Run injected JavaScript script only once WKWebView web page has fully loaded

I want to run a particular script in WKWebView only once the webpage has fully loaded (including images). What I've been doing so far is running the function fu

Dismiss a parent modal in SwiftUI from a NavigationView

I am aware of how to dismiss a modal from a child view using @Environment (\.presentationMode) var presentationMode / self.presentationMode.wrappedValue.dismiss

How to upload multiple images using Dio and multi_image_picker plugin in Flutter

I want to upload multiple-images using Dio and multi_image_picker plug-in in Flutter. List<Asset> this is the problem because I can't convert from List&l

SwiftUI drag gesture across multiple subviews

I'm attempting to create a grid of small square views, that when the user hovers over them with their thumb (or swipes across them), the little squares will tem

How to eliminate PDFView "page shadow"?

When an iOS PDFView is added to a UIView, the PDFView's page area adds a shadow-like border. Is there a way to eliminate the shadow? I know a few messy ways t

iOS Extending background time for beacon monitoring

I'm developing an iOS swift app for traveling, the concept of the app is after validating the trip with the user, while in trip, the app keeps ranging for bluet

EventKit remove event from calendar

This is the way I am adding all the events in to my calendar, those events are coming from table view. I have a problem with deleting a specific even from the c

Firebase Dynamic links - when clicked not working in iOS

Im using firebase dynamic link to open the mobile application (If already installed) or to redirect user to Playstore or app store. In iOS mobile , I pasted the

Flutter local notification onSelectNotification can not open a new page when a local notification is clicked

I want my flutter app to open a page when a local notification is clicked. I've defined the following codes in the event listener: Navigator.push( Ccontext,

Passing an ObservableObject model through another ObObject?

I feel like I can sort of understand why what I'm doing isn't working but I'm still trying to wrap my head around Combine and SwiftUI so any help here would be

Why does my css design look okay on various android screens and bad on iphone devices

I'm trying to design a webpage but it looks okay on android devices but when i use apple mobile devices (iphones) it doesnt follow my css rules and looks bad. i

CollectionView Cell inside UITableView is not scrolling horizontally for Voice Over accessibility

In my app, I have a screen where I need to support voice over accessibility. The screen has a TableView and inside that a collectionView. When voice over is ON

Unwanted "smoothing" in AVDepthData on iPhone 13 (not evident in iPhone 12)

We are writing an app which analyzes a real world 3D data by using the TrueDepth camera on the front of an iPhone, and an AVCaptureSession configured to produce

SwiftUI Force Portrait On All Except One View

I have a SwiftUI project. For all but one of the views, I want to allow portrait and only portrait mode. For only one view, I want to allow both portrait and la

Picker's configuration is not a valid configuration, Swift

I am working on new image picker API provided by Apple in WWDC2020 named as PHPicker. I am getting this error when I select the image form the picker second tim

Animate a UILabel and UIButton within a single UIView.transition block?

I need to animate the change of the value of a UILabel and a UIButton's image property. I currently use two UIView.transition blocks which seem to work fine, bu

How to save JPEG/RAW image data to camera roll in iOS 11, can't access processed image data

I'm attempting to write a photoapp that can take both RAW and JPEG images and save them to the camera roll. The functions jpegPhotoDataRepresentation and dngPho

Binding ViewModel and TextFields with SwiftUI

I'm looking for the best way to create a bind between textfields and ViewModel. At the moment I'm creating a @State for each textfield and I'm manually sending