0

How to get loaded web page title in SFSafariViewController?

I am using below these delegate to get the url but it doesnt call when i am pressing Action button

func safariViewController(_ controller: SFSafariViewController, activityItemsFor URL: URL, title: String?) -> [UIActivity] {
  let my activity = UIActivity()
  let name =  myactivity.activityTitle}
GOWTHAM
  • 13
  • 4
Gowtham S
  • 37
  • 7
  • https://github.com/koogawa/SFSafariViewControllerSample/blob/master/SFSafariViewControllerSample/ViewController.swift – Sanju Mar 20 '18 at 08:09

1 Answers1

0

Did you remember to set the delegate? Ex: safariViewController.delegate = self ?

Morten Gustafsson
  • 1,869
  • 2
  • 24
  • 34
  • yeah i added. safariViewControllerDidFinish,didCompleteInitialLoad those delegates are working fine. when i click done button. – Gowtham S Feb 19 '18 at 12:37