Skip to content

anwent/Duang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Duang

###Customizable Pagemenu In Swift.

Sample

  • create
    let menu: Duang = {
        let menu = Duang(
            frame: CGRect(x: 0, y: 50, width: UIScreen.main.bounds.width, height: 100),
            subControllers: [AVC.self, BVC.self, CVC.self],
            dataSource: self,
            delegate: self,
            controlBarHeight: 54,
            loadAllCtl: false,
            style: .full)
        menu.controlSpacing = 10.0
        menu.segmentHeight = 5.0
        return menu
    }()
  • dataSource: DuangDataSource
// Return to the view on the control bar
func duangControlBar(itemForIndex index: Int) -> UIView 
  • delegate: DuangDelegate
// Invoke this method when initializing a controller
func duang(initialized ctl: UIViewController)

func duang(current ctl: UIViewController, page: Int)

func duang(current item: UIView)

func duang(didSelectControlBarAt index: Int) 
 

Installation

pod 'Duang'

License

Duang is under MIT license. See the LICENSE file for more info.

About

Customizable Pagemenu In Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published