using safari Webview, can we get User agent string in iOS

Hi friends,

how to get user agent string using Safari Webview not with native Webview.

I could get with native Webview but I need UserAgent string using Safari Webview

please help on this
I'm not quite sure what you're trying to do. If you mean get the user agent string from JavaScript, the standard navigator.userAgent API. SFSafariViewController should have the same user agent set as Safari. There is no Objective-C/Swift API to look up what user agent string Safari would use on a particular platform, however. If this is something you need you can file feedback with your use case and what you're trying to do, although we encourage not using the user agent even from web content to decide on behaviors.
using safari Webview, can we get User agent string in iOS
 
 
Q