rect.inset(by:)
// 2022.02.08
import SwiftUI
extension CGRect {
    /// `rect.inset(by: width)`
    public func inset(by dx: CGFloat) -> CGRect {
        insetBy(dx: dx, dy: dx)
    }
}Last updated
Was this helpful?
// 2022.02.08
import SwiftUI
extension CGRect {
    /// `rect.inset(by: width)`
    public func inset(by dx: CGFloat) -> CGRect {
        insetBy(dx: dx, dy: dx)
    }
}Last updated
Was this helpful?