Skip to content

GitHawkApp/GitHawkRoutes

Repository files navigation

GitHawkRoutes

Strongly-typed deep-links into GitHawk.

Installation

Just add GitHawkRoutes to your Podfile and pod install. Done!

pod 'GitHawkRoutes'

Usage

Create one of the available routes:

import GitHawkRoutes

let repo = RepoRoute(
  owner: "GitHawkApp",
  repo: "GitHawk",
  branch: "master"
)

Then simply use our UIApplication extension to have your app open GitHawk:

UIApplication.shared.open(githawk: repo)

Really, that's it!

Beware using the master branch of this repo as the App Store version of GitHawk may be behind. In that case, the route will just open GitHawk.

Acknowledgements