Category "ios"

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

How to use "HEVC with Alpha channel" videos in SceneKit?

At WWDC 2019, Apple announced that it was now handling HEVC with Alpha in iOS, and state that it could be used in SceneKit. I've been trying for hours to make

Is it complusory to use "in" keyword in closure? If no then what is the syntax wise difference between closure and computed property in swift?

In swift use of get and set is not compulsory and if use of "in" in closure is also not compulsory then how to differentiate a closure and computed property? Li

Scene kit shape distorted

We built an iOS app to render 3D objects using Scene kit. We are plotting based upon coordinates(Vertices) received and populating our scene view inside Table c

Applying opacity to ZStack in SwiftUI

Here is my code of two overlapping rects, with opacity applied to them. var body: some View { let r = Rectangle() .foregroundColor(.blue) .f

Implementing Codable for UIColor

Is it possible to implement the Encodable and Decodable properties for UIColor When I try to add a Decodable extension I get an error extension UIColor : Deco

unsigned xcarchive aps environment missing

I want to share unsigned xcarchive. To make unsigned xcarchive. I set Provisional profile and Signing Certificate as None. I have crated Xcarchive with below co