This repo who show how to open an URL in Safari using SFSafariViewControllerDelegate in Swift 5.Here is how it's look's like: