I'm trying to implement an ASWebAuthenticationSession interaction. I've created all the bits correctly, as far as I can tell, including implementing the
func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
return self.view.window ?? ASPresentationAnchor()
}
function and including the appropriate protocol in the class definition:
class CatalogTableViewController: UIViewController, UISplitViewControllerDelegate, URLSessionDelegate,
UITableViewDelegate, UITableViewDataSource, ASWebAuthenticationPresentationContextProviding {
When I try to build, I'm getting the following error:
xxxx-Swift.h:357:59: No type or protocol named 'ASWebAuthenticationPresentationContextProviding'
I'm very confused, because I have the appropriate import that should include the protocol:
import AuthenticationServices
I've been beating my head against this now, for a couple of days. Any help or guidance would be appreciated. This is all Swift code, no ObjC.
Steve
Post
Replies
Boosts
Views
Activity
I've been beating my head against this now, for a couple of days. No matter what I do, I can't get 'FileManager.default.containerURL(forSecurityApplicationGroupIdentifier' to work. I believe I have the group defined in the target capabilities, but it always returns 'nil'. Anyone experienced this and can suggest a solution?