scp

SCPageControl

Swift PageControl

Showing:

Popularity

Downloads/wk

0

GitHub Stars

152

Maintenance

Last Commit

2yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

SCPageControl

CI Status Version License Platform

Description

Scrolling A page control that moves in sync with the page movement distance.

Next Update Todo

  • Apply disable_color another design. disable_color is not beautiful

ScreenShot

Requirements

* Swift 5.0
* XCode 10.2 (10E125)
* iOS 9.0 (Min SDK)
* Not Use Autolayout

Installation

SCPageControl is available through CocoaPods. To install it, simply add the following line to your Podfile:

//Swift 5.0
pod "SCPageControl"

//Swift 4.2
pod "SCPageControl", '-> 0.3.2'

//Swift 4.0
pod "SCPageControl", '-> 0.2.1'


//After
pod install

How To Use

import SCPageControl

public enum SCPageStyle: Int {
    case SCNormal = 100
    case SCJAMoveCircle // Design by Jardson Almeida
    case SCJAFillCircle // Design by Jardson Almeida
    case SCJAFlatBar // Design by Jardson Almeida
}

let sc = SCPageControlView()

override func viewDidLoad() {
    super.viewDidLoad()

    sc.frame = CGRect(x: 0, y: UIScreen.main.bounds.size.height-50, width: UIScreen.main.bounds.size.width, height: 50)
    sc.scp_style = .SCNormal
    sc.set_view(5, current: 0, current_color: .red)
    view.addSubview(sc)
}

//MARK: ScrollView Delegate
func scrollViewDidScroll(_ scrollView: UIScrollView) {
    sc.scroll_did(scrollView)
}

Author

myoung

HomePage

myoungsc.dev@gmail.com

Design And Help

SCJA series Design is "Jardson Almeida", e-mail is "hello@jardsonalmeida.com"
Algorithm Help
Jangbyeonghui to PeopleRoad

License

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100