0

When I want to open a URL from my application in Safari on iPad,

It will be open Safari in split screen mode:

iPad with split screen by Safari

Is there anyway to prevent split screen and force Safari to open in full size mode?

let url = URL(string: "https://google.com")!

DispatchQueue.main.async {
    UIApplication.shared.open(url, options: [:]) { _ in}
}
Vahid
  • 3,352
  • 2
  • 34
  • 42
  • Can you try keyword external like this in url ? ```external:https://www.google.com``` – Mandeep Gill Dec 07 '19 at 13:09
  • @MandeepGill, doesn't work: external:https://www.google.com: Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)" – Vahid Dec 07 '19 at 13:10
  • Please follow this stackoverflow post if still have issue then i will find check other solution : https://stackoverflow.com/questions/40440169/nswidgetextensioncontext-openurl-swift – Mandeep Gill Dec 07 '19 at 13:12
  • If you try your script in playground with external keyword then you can see difference so just have to configure settings in your application so iOS can allow to open external urls. – Mandeep Gill Dec 07 '19 at 13:16
  • @MandeepGill, What settings should I configure? – Vahid Dec 07 '19 at 13:41

0 Answers0