You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,13 +17,12 @@ Import ObjectiveKit at the top of your Swift file.
17
17
importObjectiveKit
18
18
```
19
19
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:
22
21
```swift
23
22
let viewClass = ObjectiveClass<UIView>()
24
23
```
25
24
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.
27
26
28
27
### Introspection
29
28
@@ -38,15 +37,15 @@ let protocols = mapViewClass.protocols() // Returns an array of protocols.
38
37
39
38
### Modifying classes at runtime
40
39
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:
0 commit comments