import UIKit extension String {   func toDate() -> Date? {   let dateFormatter = DateFormatter()   dateFormatter.dateFormat = “MMMM d, yyyy h:mm a”   dateFormatter.locale = Locale(identifier: “en_US_POSIX”)   dateFormatter.timeZone = .current   return dateFormatter.date(from: self)   } } let date = “October 3,…

performSegue(withIdentifier) documentation says “This method throws an Exception handling …” (sic) yet the function is not marked as “throws”.   I know for a fact that it causes an exception in some cases.   I try to put it in a do/try/catch block and Xcode…

I’m struggling to get an app working on Catalina 10.15.2 using Xcode 11.3.1, Swift 5. I could manage to boil down an example of the crash for Xcode Playgrounds:   import Cocoa import simd var viewMatrix = double4x4(1) var modelMatrix = double4x4(1) let modelViewMatrix =…