metatext/Views/ViewConstants.swift

18 lines
404 B
Swift
Raw Normal View History

2020-09-29 01:14:43 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import SwiftUI
extension CGFloat {
static let defaultSpacing: Self = 8
static let compactSpacing: Self = 4
static let defaultCornerRadius: Self = 8
}
2020-09-29 01:32:28 +00:00
extension TimeInterval {
static let defaultAnimationDuration: Self = 0.5
}
2020-09-29 01:14:43 +00:00
extension UIImage {
static let highlightedButtonBackground = UIColor(white: 0, alpha: 0.5).image()
}