URLNavigator

⛵️ Elegant URL Routing for Swift

MIT License

Stars
3.2K
Committers
15

Bot releases are hidden (Show)

URLNavigator -

Published by devxoul over 7 years ago

  • Add support mappingContext and navigationContext (#48)

⚠️ Breaking API Changes

URLNavigable

- init?(url: URLConvertible, values: [String: Any], userInfo: [AnyHashable: Any]?)
+ init?(navigation: Navigation)

URLNavigator

- func push(_ url: URLConvertible, userInfo: [AnyHashable: Any]? = nil, from: UINavigationController? = nil, animated: Bool = true) -> UIViewController?
+ func push(_ url: URLConvertible, context: NavigationContext? = nil, from: UINavigationController? = nil, animated: Bool = true) -> UIViewController?
- func present(_ url: URLConvertible, userInfo: [AnyHashable: Any]? = nil, wrap: Bool = false, from: UIViewController? = nil, animated: Bool = true, completion: (() -> Void)? = nil) -> UIViewController?
+ func present(_ url: URLConvertible, context: NavigationContext? = nil, wrap: Bool = false, from: UIViewController? = nil, animated: Bool = true, completion: (() -> Void)? = nil) -> UIViewController?
URLNavigator -

Published by devxoul over 7 years ago

  • Improve topMost property to check all windows (#45, @bill350)
URLNavigator -

Published by devxoul almost 8 years ago

  • Add URLConvertible type alias to URLNavigator class (#40, Thanks to @meigesir)
URLNavigator -

Published by devxoul almost 8 years ago

⚠️ Breaking API Changes

  • Add support to pass extra values when pushing or presenting URLs. The URLNavigator initializer now has userInfo as a third parameter. See Documentation for more info. (#37, @WildDylan)
URLNavigator -

Published by devxoul about 8 years ago

  • Fix a bug that trailing slash is removed in scheme-only url pattern (#29, @jrmsklar)
URLNavigator -

Published by devxoul about 8 years ago

Now supports Swift 3 🎉

URLNavigator

  • defaultNavigator() has renamed to default
  • pushURL(_:from:animated:) has renamed to push(_:from:animated:)
  • presentURL(_:wrap:from:animated:completion:) has renamed to present(_:wrap:from:animated:completion:)
  • openURL(_:) has renamed to open(_:)
  • viewControllerForURL(:_) has renamed to viewController(for:)

URLNavigable

  • init?(URL:values:) has renamed to init?(url:values:)

URLMatcher

  • defaultMatcher() has renamed to default
  • addURLValueMatcherHandler(_:handler:) has renamed to addURLValueMatcherHandler(for:handler:)

URLConvertible

  • URLValue has renamed to urlValue
  • URLStringValue has renamed to urlStringValue

UIViewController

  • topMostViewController() has renamed to topMost
  • topMostViewControllerOfViewController() has renamed to topMost(of:)
URLNavigator -

Published by devxoul about 8 years ago

  • Make URLMatchComponents pattern and values public (#25, @jrmsklar)
URLNavigator -

Published by devxoul about 8 years ago

  • Remove queryItems from URLMatchComponents (#23, @devxoul)
URLNavigator -

Published by devxoul about 8 years ago

  • Move URL matching logic into URLMather (#20, @jrmsklar)
URLNavigator -

Published by devxoul over 8 years ago

  • Add support for setting navigator scheme. (#11, @juancruzmdq, @devxoul)
  • Add queryParameters and queryItems property to URLConvertible. (#13, @juancruzmdq, @devxoul)
URLNavigator -

Published by devxoul over 8 years ago

  • Make topMostViewController() public. (#8, @devxoul)
  • Add push() and present() for pushing and presenting view controllers. (#8, @devxoul)
URLNavigator -

Published by devxoul over 8 years ago

  • Improve topMostViewController() behavior. (#3, @devxoul)
URLNavigator -

Published by devxoul over 8 years ago

  • Remove query and fragment when normalizing URLs. (#2, @devxoul)
URLNavigator -

Published by devxoul over 8 years ago

  • Add an availability to define placeholder types. (#1, @devxoul)
URLNavigator -

Published by devxoul over 8 years ago

  • Rename URLStringConvertible to URLConvertible
URLNavigator -

Published by devxoul over 8 years ago

  • Use <> instead of {}
URLNavigator -

Published by devxoul over 8 years ago

Navigator.map("hello://world", HelloWorld.self)
Package Rankings
Top 7.54% on Swiftpackageindex.com
Top 16.29% on Carthage
Top 0.83% on Cocoapods.org
Badges
Extracted from project README
CocoaPods Build Status CodeCov