In this post we are going to learn how to add a subview under UITabBarController in swift 5.
First download the starter project from the below link:
Open the project and run, we will see as below images in the simulator.
In...
Post Top Ad
20 Jun 2019
11 Jun 2019
Swift UISwitch color in On state & Off state, Change Switch height in swift - iOS
UISwitch in swift has two states either On or Off. This switches mostly see in native settings app.
First add switch to view as below, add following code in viewDidLoad() method:
let switchButton = UISwitch()
switchButton.translatesAutoresizingMaskIntoConstraints...
9 Jun 2019
Cannot preview in this file - active schema cannot build this file Xcode 11 beta.
This is happening most of times, no need to worry we can fix with one of the following solutions.
Solution 1:
Go to Xcode preferences -> Locations -> Command line tools
Here, most of them are set to Xcode 10, change to Xcode 11.
Restart...