another.im-ios/Monal/another.im/Helpers/EdgeInsets+Extensions.swift
2024-11-19 17:07:51 +01:00

16 lines
400 B
Swift

import SwiftUI
extension EdgeInsets {
var inverted: EdgeInsets {
.init(top: -top, leading: -leading, bottom: -bottom, trailing: -trailing)
}
static var zero: EdgeInsets {
.init(top: 0, leading: 0, bottom: 0, trailing: 0)
}
static func symmetric(_ value: CGFloat) -> EdgeInsets {
.init(top: value, leading: value, bottom: value, trailing: value)
}
}