Hi,   My Code to get Local Time From UTC:   func getLocalTimeFromUTC(dateString: String) -> (String,String){               let dateFormatter = DateFormatter()         dateFormatter.dateFormat = “yyyy-MM-dd HH:mm:ss”         dateFormatter.timeZone = TimeZone(abbreviation: “UTC”)                let dt = dateFormatter.date(from: dateString)         dateFormatter.timeZone = TimeZone.current         dateFormatter.dateFormat =…

Plz guys i need help with this so first i made a custom object import Foundationclass Website {   var name:String  var pictureLabel:String   init(title:String,pictureLabel:String) {  name = title  pictureLabel = picture  }}   and then on my tableviewcontroller class : class ViewController: UIViewController,UITableViewDelegate,UITableViewDataSource {…

I am learning basic coding with the book, “App Development in Swift” from the book apps from apple and I can’t seem to figure out what they are talking about when asking to open XCode and open the project FirstTimeDebugging(pg. 69). I been doing good…

I have a game I’m working on which uses the UIAlertController to change a String variable for the player’s gender pronouns.     class GameViewController: UIViewController {         var hes=””         var TapChat = 0             let gender = UIAlertController(title: “About…

I have 2 functions where one basically retrieves string in User Defaults and another writes the string in User Defaults. I’m not able to understand that should I do the unit test or no? and I’m pretty new to the concept for Unit testing.  …

I am a newbie here, first request.  This is called-from and declared inside my viewcontroller class:     func NrangeAlert() {         let alert = NSAlert()         alert.messageText = “N out of range”         alert.informativeText = “use a number between 1 and 92”         alert.alertStyle =…