Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sagarsdagdu/sdphotoshelper
A light-weight helper class which helps add and retrieve images and videos to / from a custom album in Photos. It uses the PHPhotoLibrary provided by Apple and is written in Swift 3 with ❤️
https://github.com/sagarsdagdu/sdphotoshelper
custom-album customalbum image images ios-lib ios-swift photos phphotolibrary phphotos swift-3 swift-library video videos
Last synced: about 1 month ago
JSON representation
A light-weight helper class which helps add and retrieve images and videos to / from a custom album in Photos. It uses the PHPhotoLibrary provided by Apple and is written in Swift 3 with ❤️
- Host: GitHub
- URL: https://github.com/sagarsdagdu/sdphotoshelper
- Owner: SagarSDagdu
- License: mit
- Created: 2017-08-07T15:00:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-06T06:02:47.000Z (almost 7 years ago)
- Last Synced: 2024-09-29T22:21:34.113Z (about 2 months ago)
- Topics: custom-album, customalbum, image, images, ios-lib, ios-swift, photos, phphotolibrary, phphotos, swift-3, swift-library, video, videos
- Language: Swift
- Homepage:
- Size: 82 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SDPhotosHelper
A light-weight helper class which helps add and retrieve images and videos to / from a custom album in Photos. It uses the PHPhotoLibrary provided by Apple and is written in Swift 3 with ❤️. It uses the Photos framework (https://developer.apple.com/documentation/photos) introduced by Apple from iOS 8.## Installing the library
To use the library, just add the dependency to your `Podfile`:
```ruby
platform :ios
pod 'SDPhotosHelper'
```Run `pod install` to install the dependencies.
## Note
- Make sure your app has the the permission to access Photos before using the methods in this class, as this class doesn't deal with permissions.
- Starting from iOS 10, it is compulsory to addNSPhotoLibraryUsageDescription
to your Info.plist file.## License
MIT LicenseCopyright (c) 2017 Sagar Dagdu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.