A collection of animated UI components for iOS, including buttons, table views, and collection views, designed to enhance user experiences with dynamic and engaging animations.
- Animated Buttons
- Add interactive animations to your buttons with ease, such as pulsating, bouncing, or scaling effects.
- Animated Table Views
- Customize animations for table view rows, including sliding, fading, and jiggle effects.
- Animated Collection Views
- Customize animations for collection view items, including shake, swing, and jiggle effects.
- iOS 14.0+
- Swift 5.0+
- Xcode 12.0+
This library integrates the following sub-libraries:
AnimatedComponentsLib is available via Swift Package Manager (SPM).
In your Xcode project, go to File > Add Packages, and add the following URL:
https://github.com/lymanny/iOS-AnimatedComponentsLib.git
Select the version you want and add it to your project.
import AnimatedComponents@IBAction func btnClick(_ sender: UIButton) {
sender.press {
print("Button Pressed!")
}
}cell.animateFlip(delay: 0.05 * Double(indexPath.row)) {
print("Animation completed for row \(indexPath.row)")
}if let cell = tableView.cellForRow(at: indexPath) {
cell.animateJiggle {
print("Jiggle animation completed for row \(indexPath.row)")
}
}func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath)
// Apply an animation
cell.animateShake {
print("Animation done for cell at \(indexPath)")
}
return cell
}Contributions are welcome! Please feel free to submit issues, fork the repository, and create pull requests.
This project is licensed under the MIT License.
lymanny - iOS Developer
π Portfolio