Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Lakr233/ASMultiAppsRiverView

Repository files navigation

ASMultiAppsRiverView

App Store like multi-apps river view

PRs Welcome PRs Welcome PRs Welcome

Preview

How to add it?

pod 'ASMultiAppsView'

How to use it?

var multiAppView: ASMultiAppsView = {
    let multiAppView = ASMultiAppsView(with: ASMultiAppsViewASMultiAppsViewConfig())
    let imgSets: [UIImage]   = [UIImage(named: "0")!,
                                UIImage(named: "1")!,
                                UIImage(named: "2")!,
                                UIImage(named: "3")!,
                                UIImage(named: "4")!]
    multiAppView.setImages(images: imgSets)
    multiAppView.backgroundColor = .white
    return multiAppView
}()

self.view.addSubview(multiAppView)
multiAppView.snp.makeConstraints { (x) in
    x.center.equalTo(self.view.snp.center)
    x.height.equalTo(multiAppView.getConfig().cardHeight)
    x.width.equalTo(multiAppView.getConfig().cardWidth)
}
multiAppView.setRadius()
multiAppView.dropShadow()

Contributor

About

App Store Like Multi App River View

Resources

License

Stars

Watchers

Forks

Packages

No packages published