You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letaction1=FloatingAction(title:"title"){ action in
// Do something.
}letaction2=FloatingAction(title:"title"){ action in
// Do something.
}letaction3=FloatingAction(title:"title", handleImmediately:true){ action in
// Do something.
// If set to 'true' the handleImmediately, handler will be execute soon when Action was select.
}letgroup1=FloatingActionGroup(action: action1)letgroup2=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.
animations
Custom animation styles.
Please check the overview or demo app for animation details
publicenumAnimationStyle{case slideUp
case slideDown
case slideLeft
case slideRight
case pop
}
letactionSheet=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.
varaction=FloatingAction(title:"title"){ action in
// Do something.
}
action.tintColor =.whiteColor()
action.textColor =.blackColor()
action.font =.boldSystemFont(ofSize:15)
License
FloatingActionSheetController is available under the MIT license. See the LICENSE file for more info.
About
FloatingActionSheetController is a cool design ActionSheetController library written in Swift2.