Posts

Post marked as solved
4 Replies
There's not that many examples out there for this. This is what I had to do to make it work at my end (Swift 5.7+, based on @eskimo 's answer above): Async func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) { if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust { guard let serverTrust = challenge.protectionSpace.serverTrust, serverTrust.isSelfSigned ?? false else { return (.useCredential, nil) } return (.useCredential, URLCredential(trust: serverTrust)) } return (.performDefaultHandling, nil) } Sync func urlSession(_: URLSession, task _: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust { guard let serverTrust = challenge.protectionSpace.serverTrust, serverTrust.isSelfSigned ?? false else { return completionHandler(.useCredential, nil) } return completionHandler(.useCredential, URLCredential(trust: serverTrust)) } return completionHandler(.performDefaultHandling, nil) }
Post not yet marked as solved
3 Replies
If you would like to see specific times, open the Developer app, go to WWDC and scroll down to Sessions and click on See All, you will see the list of Sessions for the week and the time (in your timezone) it will be available.
Post not yet marked as solved
3 Replies
The easiest way is to swap out the contentViewController.// In Swift<br/> if let controller = self.storyboard?.instantiateController(withIdentifier: "LoggedInView") as? ViewController { self.view.window?.contentViewController = controller }// In Objective-C NSViewController *controller = [[self storyboard] instantiateControllerWithIdentifier:@"LoggedInView"]; self.view.window.contentViewController = controller;Check out a GitHub sample