Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 1.21 KB

README.md

File metadata and controls

24 lines (15 loc) · 1.21 KB

Swift Custom Classes

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.

File List

  1. CustomButton.swift - This class provides a fully customizable UIButton class in Swift that allows you to change the shadow, rounded edges, gradient color, and background image.
  2. 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.
  3. SwappableButton.swift - This class provides a custom UIView that functions like the old iOS unlock button in Swift.

How to use

  1. Clone or download the project.
  2. Drag and drop the desired class file(s) into your own Xcode project.
  3. 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.

Contribution

Feel free to contribute to this project by submitting pull requests or by reporting issues.

License

The project is available under the MIT license. See the LICENSE file for more information.