Skip to content

Commit

Permalink
📝 docs: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur committed Jun 7, 2018
1 parent 909ee14 commit 0cffe40
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Expand Up @@ -12,6 +12,8 @@ To run the example project, clone the repo, and run `pod install` from the Examp

## Requirements

iOS 9.0

## Installation

AMRouter is available through [CocoaPods](https://cocoapods.org). To install
Expand Down Expand Up @@ -66,7 +68,10 @@ pod 'AMRouter'
static NSString * const kTargetName = @"Message";
@implementation AMComponent (Message)
+ (id<MessageComponentInterface>)message {
return [[self sharedInstance] targetWithName:kTargetName];
return [self targetWithName:kTargetName
classPrefix:nil
componentNameSuffix:nil
shouldCache:YES];
}
@end
```
Expand All @@ -90,7 +95,9 @@ pod 'AMRouter'
pod 'XxxComponentInterface'
```


You only need to import both `Interface` pod and `Component` pod in your main project.

You just need to import 1 `AnotherComponentInterface` pod in your `OneComponent` pod.

## Author

Expand Down

0 comments on commit 0cffe40

Please sign in to comment.