Category "swift"

Update Label Text with Timer Values

I know there are a lot of answers out there about similar issues, but it seems all of them are don't fit to my problem. And I am new to Swift and my head is bur

Individual Listeners for Chat Room List Firestore

I'm trying to implement a chat message service in my iOS application. Currently, I have a tableview holding different chat rooms for each cell. However, it seem

How to speed up image downloads from S3

My team works on an iOS app that uses S3 and DynamoDB to manage user profile pictures. We have default profile pictures when a user creates an account. When the

How to draw line between two views in Swift

I want to Draw lines from one object to another object. Like a Matching object game. I want Swift language with UIKit Use. Here I attach the Sample Screenshot.

Long Press Gesture Recognizer location(in: view) not correctly calculating location

I'm using a UIScrollView to display an image with various markers on top. The image view has a UILongPressGestureRecognizer that detects long presses. When the

iOS 14: PHPickerViewController is there any way to load all assets at the same time PHPickerResult

Currently, I am trying to dive into PHPickerViewController for select multiple image at same time from Photos. so I want to array of image that selected by user

How to convert value of optional type Binding<T?>? to Binding<T?> in SwiftUI?

I have an init like so: @Binding var height: Double? init(height: Binding<Double?>? = nil) { self._height = height } I am getting an error: Value of

Horizontal Calender with SwiftUI

I'm exploring my way through swift & swiftui trying to teach myself. My current challenge is to produce a horizontal calendar that scrolls on a single line

Swift Package Manager add only selected library

// swift-tools-version:5.5 import PackageDescription let package = Package( name: "PKG", platforms: [.iOS(.v15)], products: [ .library(

Not getting Razor pay Signature and Order ID in iOS

I have integrated the code of Razor pay, but after adding Order_id which I got from Web service Response, I am just getting Payment Id, but not getting Razor pa

Make TextField autosearch when map is opening

I have a TextField at the top of my map in Xcode. The map is opening when you choose food, to find the nearest restaurant. I want TextField to search for the St

Accessibility Inspector not working on Xcode Version 13.3 on macOS Monterey Version 12.3

I launch the Accessibility Inspector from within Xcode but it doesn't let me interact with elements in the simulator. I relaunched Xcode, the Accessibility Insp

CAShapeLayer Image Not Appearing

I have an image.cgImage that I set as the contents to a CAShapeLayer() but it's not appearing. I force unwrap the image so I know that it definitely exists. The

How do I detect when User has reached the bottom of the ScrollView?

I used the following code as a reference: SwiftUI - Get size of child? SwiftUI - How to get size (height) of ScrollView content Get the current scroll position

Xcode 12.5 dyld issue with binary frameworks

I have a binary Swift xcframework which references two other open-source Swift frameworks (built from source). My framework along with its dependencies are buil

How to display SVG Templates in SwiftUI

I am trying to display an SVG Template in my SwiftUI app. So, I have a var svgTemplate: String variable in my SwiftUI App that contains an SVG Template string,

KMM IncorrectDereferenceException in Thread

I have been trying to upload an image to aws s3 server using shared module KMM. It works very well in Android but in iOS I have been getting this issue :- Uncau

An error occurs when using MLDataTable to load data

I tried to create a word tagger model in Swift according to this tutorial in the latest XCode. But I cannot load data from a local file using MLDataTable. Here

Notification Center Selector Method does not get called

Hi I've HomeCollectionViewCellComponent which is using in HomeCollectionViewCell and also there is a struct that holds size calculation logics for my collection

Return a dictionary from multiple line string in swift

I am new to swift. Is there a simple way to convert the following string to dictionary format. Example: input = "Name: Jack\\n Area: Place\\n FavColor: Blue\\n"