- August 12, 2025
- Mins Read
FloatingActionSheetController is a cool design ActionSheetController library written in Swift2.
# Podfile
use_frameworks!
target ‘YOUR_TARGET_NAME’ do
pod “FloatingActionSheetController”
end
# Cartfile
github “ra1028/FloatingActionSheetController”
import FloatingActionSheetController
let action1 = FloatingAction(title: “title”) { action in
// Do something.
}
let action2 = FloatingAction(title: “title”) { action in
// Do something.
}
let action3 = FloatingAction(title: “title”, handleImmediately: true) { action in
// Do something.
// If set to ‘true’ the handleImmediately, handler will be execute soon when Action was select.
}
let group1 = FloatingActionGroup(action: action1)
let group2 = FloatingActionGroup(action: action2, action3)
FloatingActionSheetController(actionGroup: group1, group2)
.present(in: self)
We have prepared a rich initializer to each Class. Please refer to the demo app and source code.
Custom animation styles. Please check the overview or demo app for animation details
public enum AnimationStyle {
case slideUp
case slideDown
case slideLeft
case slideRight
case pop
}
How to use
FloatingActionSheetController(actionGroup: group, animationStyle: .slideLeft)
let actionSheet = FloatingActionSheetController(actionGroup: group)
actionSheet.animationStyle = .slideLeft
let actionSheet = FloatingActionSheetController(actionGroup: group1)
// Color of action sheet
actionSheet.itemTintColor = .white
// Color of title texts
actionSheet.textColor = .black
// Font of title texts
actionSheet.font = .boldSystemFont(ofSize: 15)
// background dimming color
actionSheet.dimmingColor = UIColor(white: 1, alpha: 0.7)
If you wants to customize FloatingAction individually.
var action = FloatingAction(title: “title”) { action in
// Do something.
}
action.tintColor = .whiteColor()
action.textColor = .blackColor()
action.font = .boldSystemFont(ofSize: 15)
Recognize your user's voice elegantly without having to figure out authorization and audio engines. SwiftSpeech Examples Features Installation Getting Started ...
Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements iOS 14.0 Installation ...
SlidingRuler is a Swift package containing a SwiftUI control that acts like an linear infinite slider or a finite, more precise ...
SkeletonUI aims to bring an elegant, declarative syntax to skeleton loading animations. Get rid of loading screens or spinners and ...