Skip to content

Commit 9fe7010

Browse files
authored
Update README.md
1 parent 7744628 commit 9fe7010

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ Import ObjectiveKit at the top of your Swift file.
1717
import ObjectiveKit
1818
```
1919

20-
To access the functionality of ObjectiveKit you will need to create an ObjectiveClass object typed for the class you want to modify or introspect:
21-
20+
The next step is to create an ObjectiveClass object typed for the class you want to modify or introspect:
2221
```swift
2322
let viewClass = ObjectiveClass<UIView>()
2423
```
2524

26-
If using for a custom Swift class, make sure that it inherits at some point from NSObject and that it is exposed to the Objective C runtime using the @objc flag.
25+
If using ObjectiveKit on a custom Swift class, make sure that it inherits at some point from NSObject and that it is exposed to the Objective C runtime using the @objc flag.
2726

2827
### Introspection
2928

@@ -38,15 +37,15 @@ let protocols = mapViewClass.protocols() // Returns an array of protocols.
3837

3938
### Modifying classes at runtime
4039

41-
Add a pre-existing function from another class to your Objective class:
40+
Add a pre-existing selector from another class to your ObjectiveClass:
4241
```swift
4342
let viewClass = ObjectiveClass<UIView>()
4443
viewClass.addSelector(#selector(testSelector), from: self.classForCoder)
4544
let view = UIView()
4645
view.perform(#selector(testSelector))
4746
```
4847

49-
Add a method by providing a custom implementation with a closure:
48+
Add a custom method by providing the implementation with a closure:
5049
```swift
5150
let viewClass = ObjectiveClass<UIView>()
5251
viewClass.addMethod(closureName, implementation: {

0 commit comments

Comments
 (0)