Category "ios"

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

iOS file patterns: The `source_files` pattern did not match any file

I am trying to create a CocoaPod and when I try pod lib lint there's an error about ERROR | [iOS] file patterns: Thesource_filespattern did not match any file.

use systemSound from SystemSoundID for UNNotificationSound

I am trying to add a sound to my UNNotification. Instead of my own custom sound or the default sound, I would like to use one of the iOS SystemSounds in AVFoun

Segmentation fault: 11 (in target 'DKImagePickerController' from project 'Pods')

I'm developing IOS app from flutter. Everything working fine, suddenly I have received error SwiftCodeGeneration normal arm64 (in target 'DKImagePickerControlle

Implement dark mode switch in SwiftUI App

I'm currently looking into Dark Mode in my App. While Dark Mode itself isn't much of a struggle because of my SwiftUI basis i'm struggling with the option to se

Problems when using Autodesk Viewer on iOS 14 device

I'm integrating the Autodesk Viewer in an iOS application. For that I am using an WKWebView to load the local HTML and javascript to load files from Forge and d

SwiftUI TabView PageTabViewStyle prevent changing tab?

I have a TabView in SwiftUI in the PageViewTabStyle so i can swipe from page to page. I'd like to have a setting that "locks" the current view in place, so the

SwiftUI TabView PageTabViewStyle prevent changing tab?

I have a TabView in SwiftUI in the PageViewTabStyle so i can swipe from page to page. I'd like to have a setting that "locks" the current view in place, so the

APNS device token not set before retrieving FCM Token for Sender ID - React Native Firebase

I have been following this tutorial to set-up Remote Push notifications on my react-native application using react-native-firebase Version 5.2.0. After I config

SwiftUI TextField with formatter broken when built with Xcode 13.3?

It looks like Xcode 13.3 broke the TextField with formatter. In example below the Text should show the value entered in the TextField, which works fine when bui

How to view PDF from Firebase Storage - SwiftUI PDFVIEW

I am having some issues trying to display a PDF which is stored in Firebase Storage in my SwiftUI app. I have successfully done the following; Uploaded a PDF fi

A click in iOS Safari triggers a "hover state" on element underneath where you tapped

On iOS Safari 11, if I have a <div> positioned over an element that has a :hover effect, and the <div> has an event that makes it disappear when cli

Segue To UIViewController From SwiftUI View

I am working to implement some SwiftUI content into my existing app. I currently have a UIViewController, which hosts a MTKView for camera preview. I have cre

Can I use MVVM without data binding?

I am trying to use MVVM. Upon reading some blogs on MVVM, I found them using data binding techniques like Rx, KVO, Boxing etc. Following are my classes for vali

SwiftUI - Animations triggered inside a View that's in a list doesn't animate the list as well

I have a List that's displaying two Views of the same type. When you tap on one of the views, they change their height with an animation. However, the List tho