Category "ios"

Detect if an iOS user is currently signed into an iCloud account and has 2FA enabled

How would my app detect if a) the iOS user is signed into an iCloud account AND b) if the 2FA is enabled on that account? I've been looking at Apple docs like

SwiftUI DatePicker Binding optional Date, valid nil

I'm experimenting code from https://alanquatermain.me/programming/swiftui/2019-11-15-CoreData-and-bindings/ my goal is to have DatePicker bind to Binding<

React Native: Phone won't go to sleep while app is open

I'm trying to test some behavior in my React Native app when the phone goes to sleep, but the phone won't sleep when the app is open. I have the auto-lock set t

Invalid CFBundleSupportedPlatforms value iPhoneSimulator in (DJIWidget) FFmpeg.framework

I cannot upload my app which contains the DJI-SDK, DJIWidget(which contains FFMpeg) to Testflight after updating to Xcode 13. When I try I get: Invalid CFBundl

Use of scene delegate for apps that does not support multiple windows

I know that scene delegate can only be used on iOS 13 and later. For my app to support iOS 12 and earlier versions, its either I opt-out of scene delegate or se

How to implement a left or right DragGesture() that trigger a switch case in SwiftUI?

I have created a DragGesture in a View that should select a @State(Bool) whether the user swipe left or right. The thing is that only swiping right is detecte

Deserializing ARWorldMap in Unity that was serialized with NSKeyedArchiver in native iOS

I have developed an iOS/ARKit app that functions as a content editor for my AR game. It has a fair amount of interface that I don't want to port over to Unity,

UICollectionView error: cells must be retrieved by calling -: -dequeueReusableCellWithReuseIdentifier:forIndexPath:

In my project I have multiple types of UITableview cell each containing UICollectionview. Initially I loaded 2 tableViewcell in 2 sections of UITableview. At

How to implement the intercom/push-to-talk/walkie-talkie feature based on Firebase on Android and iOS?

I’m using Firebase as the cloud database and handling authentication for my Android and iOS APPs, it works quite well. Recently I want to add the intercom

UIStackView change item spacing as stack view changes sizes

Overview I have a stack view that has multiple circle views in it. The circle views could be images (like profile pictures) or anything. These views should be a

Swift protocol properties with delegates

I am trying to setup a success/error view on a controller via protocol and extensions. What I want to achieve is that I want to get into the state where it is e

(SwiftUI) How to search using IGDB api, search in api

I need help I have app I'm using IGDB api and displaying games with no issue. I need ability to make user search and send the user text to api to display the ga

Why is my react-native app terminating in the background while recording (iOS, RN 0.63.3, Expo-Av 9.2.3)

Hello I'm having an issue in my React Native app where audio recordings are sometimes mysteriously terminated while the app is in the background. This happens o

GeometryReader in SwiftUI ScrollView causes weird behaviour and random offset

Im trying to create a ScrollView that in turn contains a GeometryReader (Explicitly not the other way around). The GeometryReader should contain an (image) with

How can I access a custom variable in the SceneDelegate from the ViewController?

I know how to access the scene delegate: self.view.window.windowScene.delegate And the window: UIScene *scene = [[[[UIApplication sharedApplication] connectedS

UNUserNotificationCenter need to willPresent code

I have an app written in Swift that uses UNUserNotificationCenter and I have it presenting notifications when the app is in the foreground. What I want to do is

How to access the real 100vh on iOS in CSS

This is a self Q&A If you've ever tried to use 100vh in CSS on iOS you will have found that it isn't actually 100vh when the browser chrome is expanded. It

iPhone X status bar black web app

I am working on a web-app and in testing on iPhone X using the Simulator, the status bar is completely black. How do I make my website cover the entire screen?

Animate a view to slide up and hide on tap in SwiftUI

I created a banner modifier that displays a banner from the top. This animates well. However, when I tap to dismiss it, it does not animate at all, just hides e

SwiftUI List Button with Disclosure Indicator

I have a SwiftUI view that consists of a list with some items. Some of these are links to other screens (so I use NavigationLink to do this) and others are acti