This library provides a way to convert web URLs into iOS URL scheme URLs. To add a linkout for a site, follow these simple instructions:
- Fork this GitHub repository and create a new branch
- Create a new class for your linkout and add two methods,
testandconvert - The test method is passed the URL, it should return true or false. If the
convertmethod applies to the content at this URL, then return true. Otherwise return false - Implement a
convertmethod. This method is passed the URL and apnobject. Perform whatever conversion is necessary, and ultimately set the variablepn.data.appUrlto the URL which will open the relevant URL in that app. - Add your class to the
linkoutsarray at the end of the file. - Submit a Pull Request and enter any comments about how it works or dependencies it has.