Skip to content

Commit f842303

Browse files
committed
Describe how to use the component with swift (closes #34)
1 parent 599e2c2 commit f842303

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ Copy all files from `YALContextMenu` folder to your xcode project.
5050

5151
## Usage
5252

53+
### Objective-C
54+
5355
You are welcome to see the sample of the project for fully operating sample in the Example folder.
5456

5557
* Add folder YALContextMenu to your project.
@@ -121,6 +123,14 @@ withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator
121123
}
122124
```
123125

126+
### Swift
127+
128+
You should add the following line to your bridging header:
129+
130+
``` objective-c
131+
@import ContextMenu_iOS;
132+
```
133+
124134
## Customisation
125135

126136
To customise menu items side position you can specify a 'menuItemsSide' property. When it set to 'Right' the first cell will be opened from right to left and selected cell will be closed vice versa and when it set to 'Left' the first cell will be opened from left to right and selected cell will be closed vice versa. Default - Right.

0 commit comments

Comments
 (0)