Today, we’ll start with TKSwitcherCollection, a collection of animated switch controls.
It’s really easy to use — you just need to download and drop the
TKSwitcherCollection in your project, and you’re ready!
At the moment, there are four different switches available:
- TKSimpleSwitch → The traditional switch available on iOS but also on vertical.
- TKExchangeSwitch → A switch that changes form in touch.
- TKSmileSwitch → A switch with two values: sad and happy.
- TKLiquidSwitch → A switch with a liquid-style animation.
CocoaTextField is a small, highly customizable text field library that can be used both programmatically and with storyboards.
You can, of course, customize some things, like inactive hint color, active hint color, default/focused background color, border color, and error color.
If you want to use it programmatically, an example of usage is below:
let v = CocoaTextField()
v.inactiveHintColor = UIColor(red: 145/255, green: 222/255, blue: 233/255, alpha: 1)
v.activeHintColor = UIColor(red: 777/255, green: 122/255, blue: 187/255, alpha: 1)
v.focusedBackgroundColor = UIColor(red: 200/255, green: 230/255, blue: 250/255, alpha: 1)
v.defaultBackgroundColor = UIColor(red: 250/255, green: 250/255, blue: 250/255, alpha: 1)
v.borderColor = UIColor(red: 239/255, green: 239/255, blue: 239/255, alpha: 1)
v.errorColor = UIColor(red: 231/255, green: 76/255, blue: 60/255, alpha: 0.7)
v.borderWidth = 3
v.cornerRadius = 14
EXPANDING COLLECTION is a library made in Swift that creates an animated material design UI card peek/pop controller.
In order to use this library, you have to import
expanding_collection, and then create a UICollectionViewCell that inherits from
BasePageCollectionCell. Then, add a FrontView and a BackView.
Now you can create a UIViewController that inherits from
ExpandingViewController, register the cell created in the first step, and add the UICollectionViewDataSource.
More information about the implementation can be found in the official Github repository below.
UICollectionView doesn’t have a transition effect animation as the default when you scroll between items.
AnimatedCollectionViewLayout is a UICollectionViewLayout subclass that adds custom transitions and animations to your UICollectionView without affecting your existing code!
To use it, you need to import the library into your project. Then, you have to create an
AnimatedCollectionViewLayout object, set its
animator, and assign it to your
This library works with every UICollectionView, horizontal and vertical with Dynamic cells height.
Among the configurable things, we find: slanting size, slanting direction, slanting angle, scroll direction, line spacing, item size, and the possibility to exclude the first or the last cell slanting.