Category "ios"

GestureRecognizer in scrollView not working

I moved all my UIElements in a scrollView to avoid a loaded UIViewcontroller. But now the GestureRecognizers on the view does not work anymore. My View hierarc

Xcode 10: A valid provisioning profile for this executable was not found

Since yesterday I've been getting the following error when trying run an app on my device: A valid provisioning profile for this executable was not found." Th

UIKit automatically switch to another VC after launch screen appear

I'm trying to automatically switch from lauch screen to home screen after 3 sec. This is code in entry point view controller override func viewDidAppear

iOS: Detect if the device is iPhone X family (frameless)

In my app there is some logic for frameless devices (iPhoneX, Xs Xs max, Xr). Currently it works base on the model of the devices, so, I detect the model by Dev

Change SSL Pinning mode on runtime in AFNetworking

We have a trouble with AFNetworking library when we check for SLL Pinning. We need to change SLL Pinning mode on runtime but changing doest not effect for some

Swift - Get array item with an IndexSet

I have my Contact object: struct Contact: Codable, Identifiable { var id: Int = 0 var name: String var lastName: String var phoneNumber: String

Is there someone who used animationDidStop or animationDidStart for SCNAnimation Player?

I am getting animation from a scene file with func animationFromSceneNamed(path: String) -> SCNAnimationPlayer? { let scene = SCNScene(named: path)

How Can I Adjust TextField Placeholder Color : SwiftUI

I found that I can customize TextField style in swift like this.. struct BottomLineTextFieldStyle: TextFieldStyle { func _body(configuration: TextField<

How to get selected place coordinates in google places autocomplete prediction in table view ios swift

i am able to get google places auto complete results in table view using below code. now i am looking for how to get coordinate of selected place of tableview?

Error deleting records from a SwiftUI List and Realm

Has anyone been able to successfully integrate Realm with SwiftUI, especially deleting records/rows from a SwiftUI List? I have tried a few different methods bu

Unable to access SPM classes in Swift classes referencing Obj-C classes

I'm currently working on moving one of our apps dependencies from Cocoapods to SPM. The dependency is written purely in Swift, but our codebase using it is both

How can I reproduce Picker's selection binding?

I'm building a custom view and I'm trying to manipulate the active state of its children. I have this: struct Menu<Content>: View where Content: View {

failed to produce diagnostic for expression, Xcode 11.4, Moya

After updating to Xcode 11.4, I started to get this error Failed to produce diagnostic for expression please file a bug report On: let provider = MoyaProvider

Can’t pass data correctly to modal presentation using ForEach and CoreData in SwiftUI

Im trying to pass data of some object from list of objects to modal sheet, fetching data from CoreData. The problem is that no matter what object I click on i

Does testflight reviews app again if i up the version number?

I have few queries about test flight build uploads . As i know the basic steps but i have questions still as this will be first time i shall be uploading build

How to make transparent sliverappbar in flutter?

I'm trying to make e-commerce app in flutter. I wanted to make Appbar transparent and have animation, so I use Sliverappbar but I can't make it transparent with

SwiftUI Textfield state change stopped working with iOS 15.4.1

The following code has worked fine until iOS 15.4.1. It simply enables a button next to a textfield after the value entered is greater than 100000. It still w

SwiftUI - Button with Image is clickable outside

I have a ScrollView with multiple Buttons. A Button contains a Image and a Text underneath. As the images are pretty large I am using .scaledToFill and .clipp

Passing Data Forward In Swift Without Segue

I'm currently making a to do list app using Swift 4. The home view controller has a tableview with some categories in it and when one is selected, it takes the

Problem animating with animatableData in SwiftUI

SwiftUI not only gives us get automatic animation… it lets us control how the animation occurs, using the animatableData property. So cool! Only I