FloatingButton alternatives and similar libraries
Based on the "Button" category.
Alternatively, view FloatingButton alternatives based on common mentions on social networks and blogs.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of FloatingButton or a related project?
Easily customizable floating button menu created with SwiftUI
We are a development agency building phenomenal apps.
- Create main button view and a number of submenu buttons — both should be cast to
- Pass both to
FloatingButton(mainButtonView: mainButton, buttons: buttons)
- 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.
swift FloatingButton(mainButtonView: mainButton, buttons: buttons, isOpen: $isOpen)
.circle()to specify desired menu type.
Chain whatever you like afterwards. For example:
FloatingButton(mainButtonView: mainButton, buttons: textButtons) .straight() .direction(.top) .alignment(.left) .spacing(10) .initialOffset(x: -1000) .animation(.spring()) FloatingButton(mainButtonView: mainButton2, buttons: buttonsImage.dropLast()) .circle() .startAngle(3/2 * .pi) .endAngle(2 * .pi) .radius(70)
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
delays - delay for each submenu button's animation start
Straight menu only options
direction - position of submenu buttons relative to main menu button
alignment - alignment of submenu buttons relative to main menu button
Circle only options
To try out the FloatingButton examples:
- Clone the repo
git clone email@example.com:exyte/FloatingButton.git.
- Open terminal and run
pod installto install all dependencies.
xed .to open project in the Xcode.
- Try it!
Drop FloatingButton.swift into your project.
- iOS 13+ / watchOS 13+ / tvOS 13+ / macOS 10.15+
- Xcode 11+
*Note that all licence references and agreements mentioned in the FloatingButton README section above are relevant to that project's source code only.