Skip to content

maqing1024/GlobalFloatingButton

Repository files navigation

GlobalFloatingButton

CI Status Version License Platform


Overview

GlobalFloatingButton is a lightweight, highly customizable floating button for iOS. It can be used globally across the app or attached to a specific view.

Features:

  • Draggable & Snap-to-Edge: Drag the button anywhere, and it can automatically snap to edges.
  • Flexible Snap Directions: Snap to left/right, top/bottom, or all edges.
  • Safe Area Aware: Automatically avoids notch, home indicator, and other safe areas.
  • Customizable Appearance: Supports custom size, image, corner radius, shadow, and background color for different states.
  • Global Singleton or Multiple Instances: Easy to use as a shared floating button or create multiple independent buttons.

Requirements

  • iOS 11.0+
  • Swift 5.0+

Installation

GlobalFloatingButton is available through CocoaPods.

1.Add the following line to your Podfile:

pod 'GlobalFloatingButton'

2.Run:

pod install

About

floating button

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors