Is there a way to get Safari's user agent from SFSafariViewController in Swift?

I need to get Safari's user agent at runtime in my simulator for iPad.
Is there a way to get Safari's user agent from SFSafariViewController in Swift?
 
 
Q