This repo is a rewritten version of Google's OpenInChrome in Swift language. The OpenInChromeController class is kept identical to the original one. Refer to the original documentation for details.
- Xcode 8.1 (Swift 3.0)
The OpenInChromeController class file is available here. Copy it into your Xcode installation.
Use the OpenInChromeController class as follows:
if (openInController_.isChromeInstalled()) {
openInController_.openInChrome(urlToOpen, callbackURL: callbackURL, createNewTab: createNewTab)
}
Add this to your application's Info.plist
<key>LSApplicationQueriesSchemes</key>
<array>
<string>googlechrome</string>
<string>googlechromes</string>
<string>googlechrome-x-callback</string>
</array>