Category "ios"

AVPlayer : change rate with NO pitch correction?

I am using the rate property of AVPlayer to change the playback speed of an audio sample. It seems to always apply pitch correction, but I want no pitch correc

UIScrollView not scrolling when adding UIButtons as subviews

I'm trying to build a simple UIScrollView with paging to horizontally scroll between 3 images. The tricky part is that I would like that each image would be cli

ideviceinstaller not connecting with network option

the option just outputs the usage of ideviceinstaller but with no error and does nothing. own@penguin:~$ ideviceinstaller --network 172.20.10.3 --install dark.i

Compute Diffie-Hellman key pair and shared secret in iOS with Swift

I need on iOS with Swift to: Generate a Diffie–Hellman key pair with a pre-agreed modulus P and a base G Compute a shared secret with a local private key,

'hitTest()' was Depecrated in iOS 14.0

I'm new to this and currently building an AR-related application, on the old version I stated this let results = self.hitTest(screenPosition, types: [.featurePo

UIActivityViewController has a weird size and shape

I just got this bug report for me app...the activity view controller is suddenly this weird narrow shape whether I'm on an actual phone or the view controller.

NavigationLink inside LazyVGrid cycles all entries on back, SwiftUI

I have an image grid. Each image on tap should push a view on the NavigationView with the image details. The navigation link works as intended, but when I press

Cloudkit Public Database Error: "WRITE operation not permitted"

I have currently a problem with the CloudKit Public Database. Sometimes I receive an error when modifying records: Permission Failure" (10/2007); server messag

SwiftUI Modal Inherits SearchBar during Sheet Presentation

Consider the following example with a list and a button wrapped in a HStack that opens up a sheet: struct ContentView: View { @State var text: String = ""

Is there a way to preserve capitalisation of original picked file while using UIDocumentPickerViewController?

The iOS 14 SwiftUI app I am developing has two ways of importing the audio files it plays: users can open a UIDocumentPickerViewController and select an audio f

Pull to refresh in UICollectionView in ViewController

I used the following code at a UICollectionViewController override func viewDidLoad() { self.collectionView!.alwaysBounceVertical = true l

static let sharedInstance not accessible from Objective-C code

Problem: The declared static let sharedInstance is not accessible from Objective-C code when building the main app target. Code: @objc public protocol Manag

Create dictionary from an array of objects using property of object as key for the dictionary?

With Swift is it possible to create a dictionary of [String:[Object]] from an array of objects [Object] using a property of those objects as the String key for

Flutter Web - How to prevent default iOS bottom sheet dismiss (not bottom sheet from flutter)

I build flutter web with simple ListView. When clicking the link to open a website (For example: In Facebook chat). It will open inside the iOS bottom sheet web

Flutter iOS - How to hide the DONE button at the top of the ios keyboard?

The DONE button doesn't work on Flutter Web (Safari, Chrome). I just added a Textformfield Widget to 'Counter Example Project' and built it on Chrome. And I acc

static let sharedInstance not accessible from Objective-C code

Problem: The declared static let sharedInstance is not accessible from Objective-C code when building the main app target. Code: @objc public protocol Manag

react-navigation swipe to go back doesn't trigger

I am using stack navigation and I want to use swipe to go back. However, even when I swipe the screen all the way to the right the app doesn't navigate to the p

Use of undeclared identifier 'FIRApp'

After import the Firebase.h file i wrote "[FIRApp configure]" on "- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *

Remove objects with duplicate properties from Swift array

The question here involves removing duplicate objects from an array: Removing duplicate elements from an array in Swift I instead need to remove objects that

Can't access OVM Samba share MacOs / iOS (Invalid argument)

I have Open Media Vault set up on Raspberry Pi. I have connected an external drive, created the required shared folders, enabled SMB/CIFS. Everything works grea