Skip to content

Commit

Permalink
Add EdgeInsets+Zero.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
jessetipton committed Mar 14, 2024
1 parent f79cc8a commit fe06bc0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Sources/NiceThings/Extensions/SwiftUI/EdgeInsets+Zero.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// EdgeInsets+Zero.swift
//
//
// Created by Jesse Tipton on 3/14/24.
//

import SwiftUI

@available(iOS 13, macOS 10.15, tvOS 13, watchOS 6, *)
extension EdgeInsets {
/// Edge insets whos top, leading, bottom, and trailing values are all zero.
public static var zero: EdgeInsets {
EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 0)
}
}

0 comments on commit fe06bc0

Please sign in to comment.