1717- Highly customizable
1818 - support dark/light theme
1919 - corner radius
20- - blurred background
21- - width (iPad)
20+ - blurred background (with blur styles)
2221 - various positions
2322
2423 ## ** Cell type's**
@@ -118,16 +117,18 @@ Put `Sources` folder in your Xcode project. Make sure to enable `Copy items if n
118117
119118```swift
120119let actions: [UIFloatMenuAction] = []
121-
122- let menu = UIFloatMenu.setup (actions : actions)
120+
121+ // let custom_menu = UIFloatMenu.setup(type: .custom(view: CustomView))
122+ let menu = UIFloatMenu.setup (type : .actions (actions))
123123menu.header .title = " UIFloatMenu title"
124124menu.header .subtitle = " UIFloatMenu subtitle"
125+ menu.header .showButton = true
125126menu.header .showHeader = true
126127menu.header .showLine = true
127128menu.header .lineInset = 15
128129menu.config.cornerRadius = 12
129130menu.config.blurBackground = true
130- menu.config.viewWidth_iPad = 350
131+ menu.config.blurStyle = .systemMaterial
131132menu.config.presentation = .default
132133menu.delegate.close = self
133134menu.show (self )
@@ -138,17 +139,18 @@ menu.show(self)
138139** Show next view with animation**
139140```swift
140141let header = UIFloatMenuHeaderConfig (title : " Activity" , showLine : true )
141- UIFloatMenu.showNext (actions : [], presentation : .center , header : header)
142+ UIFloatMenu.showNext (type : .custom (view : CustomView), header : header, presentation : .center ) // custom view
143+ UIFloatMenu.showNext (type : .actions ([]), header : header, presentation : .center ) // items
142144```
143145
144146** Display indicator**
145147```swift
146148UIFloatMenu.displayIndicator (text : " Loading..." , presentation : .rightUp (overNavBar : true ))
147149
148- // If success show next
150+ // If success, show next
149151UIFloatMenu.showNext (actions : [], presentation : .rightUp (overNavBar : true ), header : header)
150152
151- // If error stop indicator and show previous view
153+ // If error, stop indicator and show previous view
152154UIFloatMenu.stopIndicator ()
153155```
154156
0 commit comments