A drop-in replacement for UIImagePickerController with more options and the ability to select multiple images and/or videos.
Hi, we're Awkward. We created a customizable image picker for our iOS reddit client called Beam. UIImagePickerController only supports selecting 1 image at a time, but we needed more images in Beam. Tatsi has built in support for selecting multiple images. On top of that, we integrated a camera button directly into the picker. We welcome you to use Tatsi for your own projects.
- Multi selection of photos/videos using the photos library
- Ability to reverse the display order of images/videos
- Option to show a camera button inside the picker
- Assigning a max limit for the number of photos and videos
- Choosing the first view the user sees
- Ability to display the picker in a single view, merging the album view with the assets collection
- Accessibility (voice-over and switch control) is supported
- Easily Localizable
- Support for smart albums, user created albums and iCloud shared albums
- Support for dark mode by default
- Customization using the
TatsiColors
protocol
- Add Tatsi as a submodule to your repository.
- Drag
Tatsi.xcodeproj
into your Xcode project - Go to your Project Settings -> General and add Tatsi under Embedded Frameworks
- Add
NSPhotoLibraryUsageDescription
to your Info.plist with a proper description. - (Optional) if you want to use the camera option. You will also need to add
NSCameraUsageDescription
to your Info.plist
- Remove Tatsi.h and Info.plist from the Tatsi folder.
- Add the contents of the Tatsi folder to your projects
- Add
NSPhotoLibraryUsageDescription
to your Info.plist with a proper description. - (Optional) if you want to use the camera option. You will also need to add
NSCameraUsageDescription
to your Info.plist
- Add
github "awkward/Tatsi"
to yourCartfile
- Run
carthage update Tatsi
- Add Tatsi to your project's Embedded Binaries and to the Carthage build phase
- Add
NSPhotoLibraryUsageDescription
to your Info.plist with a proper description. - (Optional) if you want to use the camera option. You will also need to add
NSCameraUsageDescription
to your Info.plist
- Add
pod 'Tatsi'
to yourPodfile
- Run
pod install
- Add
NSPhotoLibraryUsageDescription
to your Info.plist with a proper description. - (Optional) if you want to use the camera option. You will also need to add
NSCameraUsageDescription
to your Info.plist
- Add
Import Tatsi
andImport Photos
to your Swift file. You can skip this step if you used manual installation. - (Optional) Create an instance of
TatsiConfig
and configure the settings. - Create an instance of
TatsiPickerViewController
.TatsiPickerViewController(config:)
allows you to use the config from the previous step - Implement
TatsiPickerViewControllerDelegate
- Set the
pickerDelegate
onTatsiPickerViewController
- Present the
TatsiPickerViewController
Tatsi is localized in English by default but you can provide your own localization in your project. Simple include the keys in your project's localizable strings. For more information see Localization on the Wiki
Tatsi = Photos in Planco, the language spoken in the game Planet Coaster. Source
- The ability to color some elements
- Icons for the hidden and recently deleted albums
- Proper
init?(coder aDecoder: NSCoder)
support - UI Tests
- Running Unit Tests on Travis
We're trying to keep our documentation as updated as possible. Here you can find more information on Tatsi.
Tatsi is available under the MIT license. See the LICENSE file for more info.