I have views like below 75% view is Scrollview and 25% is Bottom Imageview. childView which is inside scrollviews My Screen UI I tried below code as w
I'm still very new to SceneKit and SpriteKit and just started working on animating some SCNNodes. One thing I don't get is when to use SCNAction and when to us
I am learning how to use the new Swift language (only Swift, no Objective-C). To do it, I want to do a simple view with a map (MKMapView). I want to find and up
I'm trying to render a frame, with realistic depth of field effect. I've already tried the depth of field properties in the camera node, but it doesn't produce
I am trying to change the font of a UIButton using Swift... myButton.font = UIFont(name: "...", 10) However .font is deprecated and I'm not sure how to chang
I start working on an iOS project and it's using IB and storyboard. I build it after cloning from the repository and it was successful. But the problem is after
AVPlayer layer not showing video content sometimes but plays audio. This happens some times not each time Here is my lines of code : override func viewDidLoa
I am getting a 'Type of expression is ambiguous without more context ' on this part of code from a project I am trying to upgrade to latest Swift version. I can
I’d like to render a table of text cells in my SwiftUI View in a way, that every cell auto-resizes just so much that the text fits in it. So I did this:
I have this generic function to save in NSUserDefaults, in generally works but now I want to save a boolean value and I get an error. I could not find anything
Here is my Objective-C code which I'm using to load a nib for my customised UIView: -(id)init{ NSArray *subviewArray = [[NSBundle mainBundle] loadNibNamed
I am working on a project where I need to create a similar iOS application to UBER and OLA where the car is moving based on the location. I'm looking for some k
I was trying to install React Native on my system, and found that it failed to install CocoaPods dependencies which is required by that template error. sudo arc
I want to extend Array class so that it can know whether it is sorted (ascending) or not. I want to add a computed property called isSorted. How can I state the
I have multiple swift files of type UIViewController in my Xcode 6 beta-2 project. I basically want to know some data from file A to use in file B. My files are
I have a UICollectionView with 2 sections. In the first one there is a custom UISegmentedControl with two options: "All" and "Favourite".When I click one of the
In Swift, it seems that global constants should be camelCase. For example: let maximumNumberOfLoginAttempts = 10 Is that correct? I'm used to all caps, e.g
I have a strange problem with firebase in-app message for iOS in swift. the message is getting displayed during the launch as expected,i was sending a URL with
I am trying to build UIs programmatically with Swift. How can I get this action working? override func viewDidLoad() { super.viewDidLoad() // Do any add
I've looked everywhere for this but I'm coming up blank. How do you replicate what Chris Lattner was demonstrating with Playgrounds and SceneKit at WWDC? I want