Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/younatics/MediaBrowser
π A simple iOS photo and video browser with optional grid view, captions and selections written in Swift5.0
https://github.com/younatics/MediaBrowser
gallery media photo photobrowser swift5 video
Last synced: 10 days ago
JSON representation
π A simple iOS photo and video browser with optional grid view, captions and selections written in Swift5.0
- Host: GitHub
- URL: https://github.com/younatics/MediaBrowser
- Owner: younatics
- License: mit
- Created: 2017-09-05T14:01:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-18T09:54:36.000Z (over 2 years ago)
- Last Synced: 2024-10-02T00:46:50.262Z (about 1 month ago)
- Topics: gallery, media, photo, photobrowser, swift5, video
- Language: Swift
- Homepage: https://younatics.github.io/MediaBrowser/
- Size: 85.9 MB
- Stars: 648
- Watchers: 25
- Forks: 117
- Open Issues: 26
-
Metadata Files:
- Readme: README-KR.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-swift - MediaBrowser - Simple iOS photo and video browser with optional grid view, captions and selections. (Libs / UI)
- awesome-swift - MediaBrowser - Simple iOS photo and video browser with optional grid view, captions and selections. (Libs / UI)
- awesome-swift - MediaBrowser - A simple iOS photo and video browser with optional grid view, captions and selections written in Swift5.0 ` π 8 months ago ` (UI [π](#readme))
- awesome-swift - MediaBrowser - Simple iOS photo and video browser with optional grid view, captions and selections. (Libs / UI)
README
![title](https://github.com/younatics/MediaBrowser/blob/master/Images/MediaBrowser_w.png?raw=true)
## Intoduction
π **MediaBrowser**λ `UIImage`, `PHAsset` λλ `URLs`μ μ¬μ©νλ `λΌμ΄λΈλ¬λ¦¬ Assets`, `μΉ λΉλμ€/μ΄λ―Έμ§` λλ `λ‘컬 νμΌ`μ νλ μ΄μμ μ¬μ§μ΄λ μμλ₯Ό λ³΄μ¬ μ€λλ€.
MediaBrowserλ μΉμμ μ¬μ§μ λ€μ΄λ‘λ λ° μΊμ±μ μ²λ¦¬ν©λλ€. μ¬μ§μ νλ μΆμν μ μμΌλ©° μΊ‘μ μ μ ν ν μ μμ΅λλ€. μ¬μ©μκ° λ©μΈ μ΄λ―Έμ§λ·°λ 그리λμμ νλ μ΄μμ μ¬μ§μ μ ν ν μ μλλ°μλ μΈμ μμ΅λλ€.λν λ―Έλμ΄λΈλΌμ°μ λ
Also, MediaBrowser μΊμ±μ λν΄μ [SDWebImage](https://github.com/rs/SDWebImage) μ΅μ λ²μ μ μ¬μ©νλ©°, [MWPhotoBrowser](https://github.com/mwaterfall/MWPhotoBrowser)μ μν₯μ λ°μμ΅λλ€.| Single Photo | Multiple Photos And Video |
| ------------- | ------------------------ |
| ![SinglePhoto](https://github.com/younatics/MediaBrowser/blob/master/Images/SinglePhoto.gif?raw=true) | ![MultiplePhotosAndVideo](https://github.com/younatics/MediaBrowser/blob/master/Images/MultiplePhotosAndVideo.gif?raw=true) |
| Multiple Photo Grid | Multiple Photo Selection |
| ![MultiplePhotoGrid](https://github.com/younatics/MediaBrowser/blob/master/Images/MultiplePhotoGrid.gif?raw=true) | ![PhotoSelection](https://github.com/younatics/MediaBrowser/blob/master/Images/PhotoSelection.gif?raw=true) |
| Web Photos | Web Photos Grid |
| ![WebPhotos](https://github.com/younatics/MediaBrowser/blob/master/Images/WebPhotos.gif?raw=true) | ![WebPhotoGrid](https://github.com/younatics/MediaBrowser/blob/master/Images/WebPhotoGrid.gif?raw=true) |## Requirements
`MediaBrowser` λ μ€μννΈ 3μΌλ‘ μμ± λμμΌλ©° iOS 8.1μ΄μμ΄ μꡬ λ©λλ€.## μ¬μ©λ²
### κΈ°λ³ΈGet `MediaBrowser` and set `MediaBrowserDelegate`
```Swift
let browser = MediaBrowser(delegate: self)
self.navigationController?.pushViewController(browser, animated: true)//MediaBrowserDelegate
func numberOfMedia(in mediaBrowser: MediaBrowser) -> Int {
return mediaArray.count
}
func media(for mediaBrowser: MediaBrowser, at index: Int) -> Media {
if index < mediaArray.count {
return mediaArray[index]
}
return DemoData.localMediaPhoto(imageName: "MotionBookIcon", caption: "Photo at index is Wrong")
}
```## μ€μΉλ²
### Cocoapods
```ruby
pod 'MediaBrowser'
```
### Carthage
```
github "younatics/MediaBrowser"
```## References
#### μ ν리μΌμ΄μ μμ μ¬μ©νμ λ€λ©΄ PRν΄μ£Όμκ±°λ μλ €μ£ΌμΈμ## Updates
μ λ°μ΄νΈ μμΈ μ¬νμ [CHANGELOG](https://github.com/younatics/MediaBrowser/blob/master/CHANGELOG.md)λ₯Ό μ°Έκ³ ν΄μ£ΌμΈμ## Author
[younatics π°π·](http://younatics.github.io)## License
**MediaBrowser**λ MITλΌμ΄μΌμ€λ₯Ό λ°λ¦ λλ€. [LICENSE](https://github.com/younatics/MediaBrowser/blob/master/LICENSE)λ₯Ό μ°Έκ³ ν΄μ£ΌμΈμ