Category "swift"

UIButton with custom image still shows titleLabel even though I set it to blank - Swift iOS

I'm pretty new to Swift, currently writing an AR game. Seems like my issue is very basic, but I can't figure it out. I added a button to an AR Scene through the

Gmail app converting PDF on to Email not working properly on UIActivityViewController using PDFKit

Ran into some pdfkit issues when you share a PDF with UIActivityViewController and Gmail doesnt convert the PDF file properly it works on every other platform (

For tracking product impressions which Google Analytics hit type should I use?

Currently for tracking product impressions, I am using below code: let tracker = GAI.sharedInstance().defaultTracker let builder = GAIDictionaryBuilder.

How to tell when a UIMenu gets DISMISSED

I have a UIButton with a UIMenu attached, I need to know when the UIMenu is dismissed (by tapping outside the UIMenu) so I can remove the button that the UIMenu

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