Skip to content

DotPager: Image paging library made with SwiftUI

License

Notifications You must be signed in to change notification settings

giiiita/DotPager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DotPager

DotPager is an image paging library made with SwiftUI

Platforms License: MIT

Usage

struct ContentView: View {
    
    let images: [Image]
    
    var body: some View {
        GeometryReader { geometry in
            DotPager(
            self.images,
            contentWidth: geometry.size.width,
            contentHeight: 300.0,
            contentMode: .fill,
            thresholdType: .harf) { image in
                image
            }
        }
    }
}

Installation

DotPager is available via Swift Package Manager.

Using Xcode 11, go to File -> Swift Packages -> Add Package Dependency and enter https://github.com/yotsu12/DotPager

About

DotPager: Image paging library made with SwiftUI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages