-
Notifications
You must be signed in to change notification settings - Fork 112
Share Style (Swift)
Weiping Huang edited this page May 13, 2017
·
3 revisions
Make a share-style BMB.
Swift | Objective-C
BMB is able to act as a share-action-button. Check the demo for details.
-
Set the piece-place-enum of BMB to share-style.
bmb.piecePlaceEnum = .share
-
Add builders.
Notice that the number of builders must in range [3, +∞]. And you should usebmb.buttonPlaceEnum.buttonNumber()
as a loop count. Becausebmb.piecePlaceEnum.pieceNumber()
could NOT know the number of the pieces when the piece-place-enum is.share
.for _ in 0..<bmb.buttonPlaceEnum.buttonNumber() { bmb.addBuilder(BuilderManager.textInsideCircleButtonBuilder()) }
-
(Optional) Customize your share style BMB.
bmb.shareLineLength = 25 bmb.shareLineWidth = 3 bmb.dotRadius = 6 bmb.shareLine1Color = UIColor.black bmb.shareLine2Color = UIColor.black
You can add boom-buttons as many as possible by customizing positions.
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