another.im-ios/ConversationsClassic/Helpers/EdgeInsets+Extensions.swift
fmodf b3b3b3aef7 mv-experiment (#1)
Reviewed-on: narayana/conversations-classic-ios#1
Co-authored-by: fmodf <fmodf.ios@gmail.com>
Co-committed-by: fmodf <fmodf.ios@gmail.com>
2024-09-03 15:13:58 +00: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)
}
}