https://github.com/kenanatmaca/ksnapview
iOS Social Media Story Image Loader 🤳
https://github.com/kenanatmaca/ksnapview
instagram ios ios-animation snapchat story swift
Last synced: 8 months ago
JSON representation
iOS Social Media Story Image Loader 🤳
- Host: GitHub
- URL: https://github.com/kenanatmaca/ksnapview
- Owner: KenanAtmaca
- License: mit
- Created: 2017-10-03T17:53:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-03T18:58:24.000Z (over 8 years ago)
- Last Synced: 2025-05-01T14:15:18.359Z (about 1 year ago)
- Topics: instagram, ios, ios-animation, snapchat, story, swift
- Language: Swift
- Homepage:
- Size: 2.93 KB
- Stars: 13
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KSnapView
iOS Social Media Story Image Loader 🤳

#### Use
```Swift
snpView = KSnapView(to: self)
snpView.duration = 4
snpView.count = images.count
snpView.delegate = self
snpView.setup()
```
##### Use Delegate
```Swift
extension mainVC: KSnapViewDelegate {
func didChange(index: Int) {
self.imgView.image = images[index]
}
func finished(flag: Bool) {
if flag {
// finished
}
}
}
```
##### Next & Remove
```Swift
snpView.next()
snpView.remove()
```
## License
Usage is provided under the [MIT License](http://http//opensource.org/licenses/mit-license.php). See LICENSE for the full details.