{"repo":"exyte/FloatingButton","free":true,"listed":false,"github":"https://github.com/exyte/FloatingButton","clone":"git clone https://github.com/exyte/FloatingButton.git","description":"Easily customizable floating button menu created with SwiftUI","language":"Swift","stars":1266,"topics":["swiftui","swiftui-components","swiftui-animations"],"license":"MIT","category":"mobile-apps","readme_excerpt":"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FloatingButton Easily customizable floating button menu created with SwiftUI Usage 1. Create main button view and a number of submenu buttons — both should be cast to AnyView type. 2. Pass both to FloatingButton constructor: 3. You may also pass a binding which will determine if the menu is currently open. You may use this to close the menu on any submenu button tap for example. 4. Chain .straight() or .circle() to specify desired menu type. 5. Chain whatever you like afterwards. For example: Universal options spacing - space between submenu buttons initialScaling - size multiplyer for submenu buttons when the menu is closed initialOffset - offset for submenu buttons when the menu is closed initialOpacity - opacity for submenu buttons when the menu is closed animation - custom SwiftUI animation like Animation.easeInOut() or Animation.spring() delays - delay for each submenu button's animation start - you can pass array of delays - one for each element - or you can pass delayDelta - then this same delay will be used for each element mainZStackAlignment - main button and submenu buttons are contained in one ZStack (not an overlay so the menu has a correct size), you can change this ZStack's alignment with this parameter inverseZIndex - inverse zIndex of mainButton and the children. Use, for example, if you have a negative spacing and want to change the order wholeMenuSize - pass CGSize binding to get updates of menu's size. Menu's size includes ma","default_branch":null,"files":null,"tree":[],"storefront":"/r/exyte","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/exyte/FloatingButton/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}