Category "swift"

"Image Literal" commands not working in Xcode

I started studying swift language n there is a command Image Literal to add an image but it's not showing up anything. other than that if I try any other coding

Xcode 13.3 Build Failed because of Cycle in Dependencies between targets libsignal-protocol-swift

After updating to Xcode 13.3 facing Build failed issues with libsignal-protocol-swift library. This is happening while building second time while after cleaning

Updating @Published var if a userdefault value is present swift

I am trying to check my app and see if a value exists in user defaults and if it does exist they will be taken into the app. If it doesnt exist they need to ent

Compositional layout with centred items and centred paging

Need some help here. I'm building an interesting layout, where cells are centered depending on their count. Probably, best thing to explain is to illustrate a l

UIButton position to right side of UITextView in a growing textView

I have a UIButton() in a textView. let expanButtonHeight = bounds.size.height expanButton.frame = CGRect(x: textView.bounds.size.width - expanButtonHeight,

Make different collapsable sections in tableView swift iOS

I want to implement the different expand/collapse section in tableView and each sections contain the different kind of data.I'm getting the index of section whe

How to grab the current users "firstname" from firebase store. Swift 5

I did more trial and error and a bit of online research and this is what I came back with: func presentWelcomeMessage() { //Get specific doc

UITabBarAppearance does not work on iOS15 iPad (title color)

I created a simple demo and only created a UITabBarController's subclass and set in storyboard. I want to set the TabBarButtonItem's title to an orange color wh

show masking on object which is between camera and wall using RealityKit

I made a video for generating a floor plan in which I need to capture the wall and floor together at a certain position if a user is too near to the wall or if

Is there a way to check if @Environmentobject exists swiftui

I have a view hierarchy where sometimes there is a chance that an @EnvironmentObject is not resolved. Is there a way to check if such @EnvironmentObject exists

Get coordinates in real time of a moving view in SwiftUI

I am moving a view called Point (which is basically a point), the point is moving in the screen every 2 seconds, and I need to update the coordinates in real ti

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(