Category "swift"

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

Cancelling an async/await Network Request

I have a networking layer that currently uses completion handlers to deliver a result on the operation is complete. As I support a number of iOS versions, I ins

How to use Image Literal in Xcode 13

The most used feature is missing in Xcode 13 Image Literal #imageLiteral() these commands do not seem to be working. A similar change has happened for Color L

Quick Nimble ios test not running

I'm trying to use Quick & Nimble to test a project but the test is never executed. I've created a project from scratch using File->New->Project in Xco

How send an https request in swift with .crt and .key files

I'm developing an ios (ipad) application with swift. I'm able to send an http request with a URLSession object and it works well. Now I would like to know how s