Skip to content

Commit 8adeb26

Browse files
committed
Update README.md
1 parent 2d64640 commit 8adeb26

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,18 @@ menu.config.cornerRadius = 12
9595
menu.config.blurBackground = true
9696
menu.config.viewWidth_iPad = 350
9797
menu.config.presentation = .default
98-
menu.closeDelegate = self
98+
menu.delegate.close = self
9999
menu.show(self)
100100
```
101101

102102
## Delegate
103103

104104
To `know when menu is closed`, set the delegate with protocol `UIFloatMenuCloseDelegate`:
105105

106+
```swift
107+
menu.delegate.close = self
108+
```
109+
106110
```swift
107111
func UIFloatMenuDidCloseMenu() {
108112
print("didCloseMenu - MenuClosed")
@@ -111,6 +115,10 @@ func UIFloatMenuDidCloseMenu() {
111115

112116
To get `UITextField data`, set the delegate with protocol `UIFloatMenuTextFieldDelegate`:
113117

118+
```swift
119+
menu.delegate.textField = self
120+
```
121+
114122
```swift
115123
func UIFloatMenuGetTextFieldData(_ data: [String]) {
116124
print("TextField -", data)

0 commit comments

Comments
 (0)