This project is a collection of custom classes written in Swift. The classes in this project can be used to add additional functionality to your own projects.
CustomButton.swift
- This class provides a fully customizableUIButton
class in Swift that allows you to change the shadow, rounded edges, gradient color, and background image.CustomView.swift
- This class provides a custom view that has a customizable gradient color, tap detection, a custom shadow layer with rounded corners, and the ability to add a background image.SwappableButton.swift
- This class provides a customUIView
that functions like the old iOS unlock button in Swift.
- Clone or download the project.
- Drag and drop the desired class file(s) into your own Xcode project.
- Use the custom class in your project just like you would use a UIButton, UITextField, UILabel, and UIView respectively.
Note: The project is written in Swift 5 and is compatible with Xcode 12.
Feel free to contribute to this project by submitting pull requests or by reporting issues.
The project is available under the MIT license. See the LICENSE file for more information.