URL routing library for iOS with a simple block-based API
Support for Swift Package Manager
JLRoutes 2.1 has the following new features and improvements:
+[JLRoutes setDefaultRouteDefinitionClass:]
JLRRouteDefinition
API is exposed in the header and intended to be overridden in subclasses (see README for more details).JLRRouteHandler
, has been added to provide helper methods for creating route handler blocks that are routed to classes or object instances (see README for more details).JLRRouteDefinition
no longer requires a scheme parameter to be providedJLRRouteResponse
now holds on to the final parameters passed to the handler block, via a parameters
propertyJLRRouteResponse
and JLRRouteDefinition
now conform to NSCopying
+ (NSDictionary <NSString *, NSArray <JLRRouteDefinition *> *> *)allRoutes;
- (NSArray <JLRRouteDefinition *> *)routes;
- (void)addRoute:(JLRRouteDefinition *)routeDefinition;