TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Aug 2016 |
SPMSupports SPM | ✗ |
Maintained by yangfan.
To run the example project, clone the repo, and run pod install
from the Example directory first.
YFPopupButtons is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "YFPopupButtons"
var testView = YFPopupButtonsView()
testView.delegate = self
testView.show()
testView.dismiss()
func numOfItems(buttonsView: YFPopupButtonsView) -> Int
func maxNumberOfItemsInRow(buttonsView: YFPopupButtonsView) -> Int
func itemSize(buttonsView: YFPopupButtonsView) -> CGSize
func buttonsView(buttonsView: YFPopupButtonsView, itemForIndex index: Int) -> YFPopupbotton
Example of Defining Round Buttons with Image and Title.
func buttonsView(buttonsView: YFPopupButtonsView, itemForIndex index: Int) -> YFPopupbotton {
let button = YFPopupbotton(contentImage: UIImage(named: "fbIcon")!, title: "Title")
button.contentImageView.layer.cornerRadius = 30
button.contentImageView.backgroundColor = .whiteColor()
button.contentImageView.contentMode = .ScaleAspectFill
return button
}
func buttonsView(buttonsView: YFPopupButtonsView, didTapItemAtIndex index: Int)
func sideMargin(buttonsView: YFPopupButtonsView) -> CGFloat
func spaceBetweenRows(buttonsView: YFPopupButtonsView) -> CGFloat
func buttonsViewWillAppear(buttonsView: YFPopupButtonsView)
func buttonsViewWillDisappear(buttonsView: YFPopupButtonsView)
pushian, [email protected]
YFPopupButtons is available under the MIT license. See the LICENSE file for more info.