Swiftpack.co - JiHoonAHN/PageImageScrollView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by JiHoonAHN.
JiHoonAHN/PageImageScrollView 0.2.1
Library for moving images to scroll views
⭐️ 3
🕓 3 weeks ago
.package(url: "https://github.com/JiHoonAHN/PageImageScrollView.git", from: "0.2.1")

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()
]

Installation

Swift Package Manager

PageImageScrollView is available througb SPM. To install it, simply add the following line to your Package.swift:

// Package.swift

dependencies: [
    .package(url: "https://github.com/JiHoonAHN/PageImageScrollView", from: "0.2.0")
]

Cocoapods

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

pod 'PageImageScrollView'

Author

JiHoonAHN, ahnjh1028@naver.com

License

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

GitHub

link
Stars: 3
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Version 0.2.1
3 weeks ago

UPDATE ReadMe

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics