Posts

undefined symbol sqlite3_column_table_name error in iOS swift

Solution: When your project does not added the sqlite framework then the above error will came.So try to add the framework in your project and compile it will works.

Git error no file found for particular path but the file had already exist

Solution: If you are the file within the folder and that foldername contains space then remove the space and commit it will works good.

activityIndicator in swift 5

Solution: The below code is used for activity indicator in swift 4              let  activityIndicator = UIActivityIndicatorView( activityIndicatorStyle: . white ) In swift 5 the below code is used. let  activityIndicator =  UIActivityIndicatorView (style: . white )

String functions in swift 5

Solution: In swift 4 the below code is used for capitalise the first letter. String(characters.prefix(1)). capitalized In swift 5 below code is used for capitalise the first letter. let  first =  String ( prefix ( 1 )). capitalized             

How to get string characters count in swift 5

Solution: In swift 4 we are using the below code to find the characters in a particular string charactrers.count In swift 5 we are using the below code string.count

UIEdgeInsetsInsetRect not working in swift 5

Solution:  The below code is used in swift 4.In swift 5 it shows as error. Swift 4: UIEdgeInsetsInsetRect( relativeFrame, self.touchAreaEdgeInsets) swift 5: relativeFrame. inset (by:  self . touchAreaEdgeInsets ) Relative frame is known as the frame that you want to set the edges.

How to see which version of Swift I'm using in Xcode?

Solution: Select your project -> Select the target ->select build Settings -> in search type "swift_version" then it will show your version you had used in your app.