To run the example project, clone the repo, and run pod install from the Example directory first.
- iOS 7.0 or greater
 
ARoute is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ARoute"--
Work in progress.
Full route registration example:
NSDictionary *routes = @{
	@"user/{userId=number}": [UserViewController class]
};
    
[[[[[[ARoute sharedRouter]
    registerRoutes:routes] separator:^NSString *{
    return @"{}";
}] parameters:^NSDictionary*{
    return @{@"Key3":@"Value3"};
}] castingSeparator:^NSString*{
    return @"=";
}] execute];Full route execution example:
[[[[[[[[[[ARoute sharedRouter] route:@"user/12345"] embedInNavigationController] protect:^BOOL(ARouteResponse * _Nonnull routeResponse, NSError * _Nullable __autoreleasing * _Nullable errorPtr) {
    // return YES if you don't want to handle the route
    return NO;
}] parameters:^NSDictionary*{
    return @{
             @"Key1": @"Value1",
             @"Key2": @"Value2"
             };
}] transitioningDelegate:^id<UIViewControllerTransitioningDelegate>{
    // return object conforming <UIViewControllerTransitioningDelegate>
    return nil;
}] animated:^BOOL{
    return YES;
}] completion:^(ARouteResponse *routeResponse) {
    // handle the completion
}] failure:^(ARouteResponse * _Nonnull routeResponse, NSError * _Nullable error) {
	// handle the error
}] execute];Aron Balog
ARoute is available under the MIT license. See the LICENSE file for more info.