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.
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 )
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
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
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.
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.