abdul sathar
abdul sathar

Reputation: 2396

How to change Done Button Title on SFSafariviewController

I want to change the done button title appearance on SFSafariViewController navigation bar (iOS9.0 greater Versions).

Upvotes: 1

Views: 5588

Answers (3)

Muras D
Muras D

Reputation: 51

https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller/dismissbuttonstyle From iOS 11 onwards we have option to choose the button style from below 3 options: case done

case close

case cancel

Upvotes: 5

abdul sathar
abdul sathar

Reputation: 2396

As Per Apple's documentation on SFSafariViewController, there does not appear to be a publicly-accessible way to change the title of the Done button.

If you want customised in app browser in iOS,Just use Some other WebView Browsers example like wkWebView.(If Browser was used to google sign in api we need Oauth2 process)

Upvotes: 1

PinkeshGjr
PinkeshGjr

Reputation: 8680

You can only change Done button color but if you want to change Done button title then you must have to implement manual button at run time

change Done button color using this code

SFSafariViewController *safariViewController = [[SFSafariViewController alloc] initWithURL:webpageUrl];
[safariViewController.view setTintColor:[UIColor blueColor]];

Upvotes: 0

Related Questions