Skip to content

Commit fc66c89

Browse files
authored
Update customize-webviews.md
1 parent bdb9a2f commit fc66c89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/active-directory/develop/customize-webviews.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Objective-C
9898
```objc
9999
UIViewController *myParentController = ...;
100100
WKWebView *myCustomWebView = ...;
101-
MSALWebviewParameters *webViewParameters = [[MSALWebviewParameters alloc] initWithParentViewController:myParentController];
101+
MSALWebviewParameters *webViewParameters = [[MSALWebviewParameters alloc] initWithAuthPresentationViewController:myParentController];
102102
webViewParameters.webviewType = MSALWebviewTypeWKWebView;
103103
webViewParameters.customWebview = myCustomWebView;
104104
MSALInteractiveTokenParameters *interactiveParameters = [[MSALInteractiveTokenParameters alloc] initWithScopes:@[@"myscope"] webviewParameters:webViewParameters];
@@ -109,7 +109,7 @@ Swift
109109
```swift
110110
let myParentController: UIViewController = ...
111111
let myCustomWebView: WKWebView = ...
112-
let webViewParameters = MSALWebviewParameters(parentViewController: myParentController)
112+
let webViewParameters = MSALWebviewParameters(authPresentationViewController: myParentController)
113113
webViewParameters.webviewType = MSALWebviewType.wkWebView
114114
webViewParameters.customWebview = myCustomWebView
115115
let interactiveParameters = MSALInteractiveTokenParameters(scopes: ["myscope"], webviewParameters: webViewParameters)

0 commit comments

Comments
 (0)