Skip to content

Commit

Permalink
Merge pull request #2 from hyperoslo/improve/navigate
Browse files Browse the repository at this point in the history
Add optional scheme label for navigate
  • Loading branch information
zenangst committed Oct 8, 2015
2 parents e48cb50 + 88325ba commit 6d95d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Compass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public struct Compass {
return false
}

public static func navigate(urn: String) {
public static func navigate(urn: String, scheme: String = Compass.scheme) {
let stringURL = "\(scheme)\(urn)"
guard let url = NSURL(string: stringURL) else { return }
UIApplication.sharedApplication().openURL(url)
Expand Down

0 comments on commit 6d95d5c

Please sign in to comment.