Skip to content

Commit b24d0e6

Browse files
committed
Add safeArea
1 parent 444204c commit b24d0e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/GateEngine/UI/View.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ open class View {
233233
public var marginInsets: Insets = .zero
234234
public private(set) lazy var margin: Layout.Guide = Layout.Guide(view: self)
235235

236+
public var additionalSafeAreaInsets: Insets = .zero
237+
public private(set) lazy var safeArea: Layout.Guide = Layout.Guide(view: self)
238+
236239
internal lazy var layoutGuide: Layout.Guide = Layout.Guide(view: self)
237240

238241
public var topAnchor: Layout.Anchor<Layout.Vertical, Layout.Location> {self.layoutGuide.topAnchor}

0 commit comments

Comments
 (0)