Category "swift"

How to does Apple Reminders App/ iOS version Google Keep able to implement recurring reminder with complex rule?

By using UNCalendarNotificationTrigger and UNNotificationRequest, it is possible to create the following recurring reminder Show reminder every day 8:00 am star

Why is my view not updating when value is updated using @Published and @ObservedObject?

I am creating an object recognition app that takes frames from the camera and outputs a description of the image into a text view on the screen. I can print the

Swift for loop not waiting for firestore call to complete

I know firestore calls are async which means this will not work: private func removeUserSavedMomentFromAllUsers(moment: StoryMoment, completion: @escaping (

Swift cocoa pods issue: '/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.5/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture...'

Is there a way to implement Amazon Polly into Swift? I followed this iOS-Example, that is given by Amazon Polly: https://docs.aws.amazon.com/polly/latest/dg/exa

How do I automatically switch to the iOS custom keyboard when entering my app?

I would like when entering my app to automatically switch to my custom keyboard like the Facemoji app. Is this possible to force user to open only custom keyboa

PostgreSQL DB location query with Fluent 4

I have an application that stores items with a latitude and longitude, I wanted to create a query that filters the items and paginates them by their distance to

Deleting from Firebase with Document ID

I'm using Firebase to store and retrieve Data. I am able to successfully save data to Firestore but nothing seems to happen when I delete the user from the Fire

How can I use an open range (both bounds exclusive) in Swift?

I already know that there's a built-in operator ..< called half-open range. But how can I obtain a "both-open" range, meaning a range that doesn't contain ei

Need advice on building a diagonal keyboard for Iphone App

I want to make an IPhone App, but sort of a strange one. I want to make an app where the keyboard is on the bottom left corner of the screen. I don't have any e

iOS (Swift) Speech Transcription - capturing last word/number during continuous transcription

I am struggling a bit with a Speech app I am working on. I followed the dev example for creating a Speech Recognizer on Apple's developer website here, and my

iOS (Swift) Speech Transcription - capturing last word/number during continuous transcription

I am struggling a bit with a Speech app I am working on. I followed the dev example for creating a Speech Recognizer on Apple's developer website here, and my

How to get system music queue from MusicKit?

I'm using MusicKit to build an iOS app that manages the queue of Apple Music. I am able to get the current item in the queue by: SystemMusicPlayer.shared.queue.

Sort an Array of objects on the basis of value of array inside object [duplicate]

I am looking for better approach to sort an array of objects on the basis of array elements inside the object. I have an array of objects to b

How do I make a simple Modular Large complication on watchOS?

I'm hoping to build a Modular Large complication that will display two strings - a static one and another one that gets decided in code. The complication will o

Change compact date picker text color. Always black

I have inserted a UIDatePicker in .compact format, only date, in Swift. I have done several tests and read many posts but I can not change the color of the text

Customisable SwiftUI Refresh spinner

I currently have a simple SwiftUI ScrollView that contains a single element. I have added the .refreshable(action: ) property to allow (pull down) refreshing of

WKWebView prevent use Live Broadcast Camera

I am trying to use the angular ngx-webcam library to use the IOS camera via WKWebView, but the camera opens in live broadcast mode and not as I want

How to send an email attachment from a webview

I am converting a phonegap app to run in a standard webview. One of the features that we are losing is the ability to send an email with an attachment. In stand

Is there any possibility to get any event triggered when signout from TVProvider in apple tv setings

When application in background. Then signOut from TVProvider in apple tv settings. Is there any possibility to catch that event? Thanks!!

Swift Package Manager BuildToolPlugin Network Access

I'm experimenting with the new BuildToolPlugin for Swift Package Manager. Evolution: https://github.com/apple/swift-evolution/blob/main/proposals/0303-swiftpm-e