WekanButton is a custom button with different types and styles. You can also customise it.
-
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 tocustom
. Set the requitred constraints. -
Configure the buttons as shown in the sample ViewController
loginButton.configure(withContent: .textOnly,
backgroundType: .outlined,
cornerType: .smooth,
text: "Login")
- 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