JLRoutes is a URL routing library with a simple block-based API. It is designed to make it very easy to handle complex URL schemes in your application with minimal code. JLRoutes is available for installation using CocoaPods or Carthage. JLRoutes 2.x require iOS 8.0+ or macOS 10.10+. If you need to support iOS 7 or macOS 10.9, please use version 1.6.4. The handler block is expected to return a boolean for if it has handled the route or not. If the block returns NO, JLRoutes will behave as if that route is not a match and it will continue looking for a match. A route is considered to be a match if the pattern string matches and the block returns YES. It is also important to note that if you pass nil for the handler block, an internal handler block will be created that simply returns YES. JLRoutes supports setting up routes within a specific URL scheme.
Features
- See JLRoutes.h for the list of constants
- Supports setting up routes that will match an arbitrary number of path components at the end of the routed URL
- JLRoutes supports setting up routes with optional parameters
- There are multiple ways to query routes for programmatic uses
- It is possible to control how routes are parsed
- JLRoutes supports setting up routes within a specific URL scheme