PageImageScrollView

Version License Platform

Requirements

  • iOS 9.0 or higher
  • Swift 5.0

Usage

import

import PageImageScrollView

Use

Storyboard

Add a custom view to the storyboard and set its class to “PageImageScrollView”

Programmatically

let pageScrollView = PageImageScrollView()
view.addSubView(pageScrollView)

Example

pageScroll.pageIndicatorTintColor = UIColor.systemBlue
pageScrollView.currentPageIndicatorTintColor = UIColor.black
pageScrollView.images= [
    .init(systemName: "1.circle") ?? .init(),
    .init(systemName: "2.circle") ?? .init(),
    .init(systemName: "3.circle") ?? .init()
]

Cocoapods

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

pod 'PageImageScrollView'

Author

JiHoonAHN, [email protected]

License

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

GitHub

View Github