Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mtfum/customalbum
Automatically save Image or Movie to app-specific album in Photos.
https://github.com/mtfum/customalbum
Last synced: about 1 month ago
JSON representation
Automatically save Image or Movie to app-specific album in Photos.
- Host: GitHub
- URL: https://github.com/mtfum/customalbum
- Owner: mtfum
- License: mit
- Created: 2019-11-03T01:42:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-24T10:44:15.000Z (about 5 years ago)
- Last Synced: 2024-10-31T15:56:57.249Z (about 2 months ago)
- Language: Swift
- Homepage:
- Size: 3 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🖼 CustomAlbum
CustomAlbum automatically saves Image or Movie to app-specific album in Photos.
## Demo GIF
## Install
### Swift Package Manager
Select Xcode menu File > Swift Packages > Add Package Dependency... and enter repository URL with GUI.
```
Repository: https://github.com/mtfum/CustomAlbum
```### Cocoapods
Add the following to your Podfile
```
pod 'CustomAlbum'
```### Carthage
Add the following to your Cartfile
```
github "mtfum/CustomAlbum"
```## Usage
Before using, you need to allow `NSPhotoLibraryUsageDescription` in info.plist
```swift
CustomAlbum.shared.save(image) { result in
switch result {
case .success(let asset):
// do something
case .failure(let error):
// do something
}
}
```## Tests
There are no tests yet.
I'm waiting for your PR!## Information and Contact
Developed by [@mtfum](https://github.com/mtfum).
Contact me by Twitter [@mtfum](https://twitter.com/mtfum)
## License
CustomAlbum is licensed under the MIT License. See the [LICENSE](https://github.com/mtfum/CustomAlbum/LICENSE) file for more information.