CheckmarkView
CheckmarkView is a simple and customizable checkmark animation view for iOS apps.
Table of Contents
Installation
CocoaPods
To integrate CheckmarkView into your Xcode project using CocoaPods, simply add the following line to your Podfile
:
pod 'CheckmarkView'
Then, run the following command:
pod install
Usage
To use CheckmarkView, follow these steps:
- Import the library:
- Create an instance of CheckmarkView:
- Start the checkmark animation:
import CheckmarkView
let checkmark = CheckmarkView(frame: CGRect(x: 0, y: 0, width: 100, height: 100))
checkmark.center = view.center
view.addSubview(checkmark)
checkmark.startAnimation()
Customization
CheckmarkView can be customized by modifying the following properties:
tintColor: UIColor
– The color of the checkmark (default: system blue)lineWidth: CGFloat
– The width of the checkmark line (default: 2.0)animationDuration: TimeInterval
– The duration of the checkmark animation (default: 0.5 seconds)
Example usage:
// Customize checkmark appearance
checkmark.tintColor = .green
checkmark.lineWidth = 3.0
checkmark.animationDuration = 1.0
License
CheckmarkView is released under the MIT license. See LICENSE for more information.