-
Notifications
You must be signed in to change notification settings - Fork 112
Blur Background & Tip (Swift)
Weiping Huang edited this page May 14, 2017
·
4 revisions
Blur background when booming.
Swift | Objective-C
The background when booming can have a blur effect by:
bmb.backgroundBlurred = true
bmb.blurEffect = UIBlurEffect.init(style: UIBlurEffectStyle.extraLight)
Check demo for details.
You can add a text on background which is called tip
in BMB:
bmb.tip = "Select an animal to feed!"
Try to customize the label of tip if you want:
// The margin (in points) between label of tip and the highest boom-button (if tipBelowButtons is NO) or the lowest boom-button (if tipBelowButtons is false).
bmb.tipButtonMargin = 30
// Whether the tip string is put below the boom-buttons on background.
bmb.tipBelowButtons = true
bmb.tipLabel().textColor = UIColor.darkGray
bmb.tipLabel().font = UIFont.systemFont(ofSize: 15)
You can add views to perform fade-in and fade-out animations when booming and rebooming to background by:
bmb.addViewToBackground(view: addedView)
Home
Chapters
- Basic Usage
- Simple Circle Button
- Text Inside Circle Button
- Text Outside Circle Button
- Ham Button
- Share Style
- Custom Position
- Button Place Alignments
- Different Ways to Boom
- Ease Animations for Buttons
- Different Order for Buttons
- Other Animations Attributes for Buttons
- Click Event and Listener
- Control BMB
- Use BMB in Navigation Bar
- Use BMB in Table View
- Attributes for BMB or Pieces on BMB
- Cache Optimization & Boom Area
- Change Boom Buttons Dynamically
- Blur Background & Tip
- Fade Views
- Structure of BMB
- Version History