Skip to content

WekanCompany/swift-button

Repository files navigation

swift-button

WekanButton is a custom button with different types and styles. You can also customise it.

alt text

How to use

  • Drag-drop the WekanButton.swift class to your project.

  • Declare the button as WekanButton

@IBOutlet weak var loginButton: WekanButton!
  • When adding UIButton in storyboard, change class to WekanButton, and change the button type to custom. Set the requitred constraints.

  • Configure the buttons as shown in the sample ViewController

loginButton.configure(withContent: .textOnly,
                          backgroundType: .outlined,
                          cornerType: .smooth,
                          text: "Login")

Supports

  • Corners/Edges - Sharp edge, smooth edge, rounded
  • Outlines/Borders
  • Background colors
  • Background colors with gradient - horizontal and vertical gradients
  • Shadows
  • Buttons with content as text, icons and their combinations

About

WekanButton is a subclass of UIButton that helps you create different types of button quickly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages