YMCirclePickerView
Fully customizable horizontal circle picker view.
Requirements
- iOS 9.0+
- Xcode 11+
- Swift 5.0+
Usage
Interface Builder Usage
- Add an empty view in your view and set it's Class to
YMCirclePickerView
with it's module.
- Add datasource and delegate(if necessary) then customize layout and style presentations in code.
Code Usage
It's as simple as interface builder implementation. Follow the below code as a guide.
DataSource and Delegate Methods
- Usage
Your data source class must be inherited from YMCirclePickerModel
. Simple example for model class:
or you can return your custom UIView as well.
- DataSource Methods
- Delegate Methods
Installation
CocoaPods
To use YMCirclePickerView in your project add the following 'Podfile' to your project
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
pod 'YMCirclePickerView'
Then run:
pod install
Carthage
Check out the Carthage docs on how to add a install. The YMCirclePickerView
framework is already setup with shared schemes.
You can install Carthage with Homebrew using the following command:
To integrate YMCirclePickerView into your Xcode project using Carthage, specify it in your Cartfile
:
github "miletliyusuf/YMCirclePickerView"
TODO
- [ ] Selected image insets