1

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

Bhavin Ramani
  • 3,221
  • 5
  • 30
  • 41
abdul sathar
  • 2,395
  • 2
  • 28
  • 38

3 Answers3

5

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

Muras D
  • 51
  • 1
  • 2
  • Welcome to stackoverflow. Short answers with a url are considered low quality as the url link can break or its contents can change. You need to include the key details in your SO post. – Simon.S.A. Jan 23 '19 at 19:55
1

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)

abdul sathar
  • 2,395
  • 2
  • 28
  • 38
0

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]];
PinkeshGjr
  • 8,460
  • 5
  • 41
  • 56
  • How did you add manual button at run time?..SFSafriviewController will handled by internally...if Possible post your code.. – abdul sathar Jun 22 '16 at 07:35