2021-03-12 07:18:07 +01:00
|
|
|
//
|
|
|
|
// RoundedEdgesButton.swift
|
|
|
|
// Mastodon
|
|
|
|
//
|
|
|
|
// Created by MainasuK Cirno on 2021-3-12.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
2021-04-01 08:39:15 +02:00
|
|
|
class RoundedEdgesButton: UIButton {
|
2021-03-12 07:18:07 +01:00
|
|
|
|
|
|
|
override func layoutSubviews() {
|
|
|
|
super.layoutSubviews()
|
|
|
|
|
|
|
|
layer.masksToBounds = true
|
|
|
|
layer.cornerRadius = bounds.height * 0.5
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|