Skip to content

Commit dd13daf

Browse files
committed
Add unimplemented warnings
Layout needs to be expanded to compute these layout guides. safeArea in particular will require a bottom to top recursion of overlapping Rects and will need a cache, which requires major refactoring. margin is much simpler but it would be beneficial to implement both at the same time.
1 parent b24d0e6 commit dd13daf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/GateEngine/UI/View.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,11 @@ open class View {
231231
}
232232

233233
public var marginInsets: Insets = .zero
234+
@available(*, deprecated, message: "margin guide not implemented. Will crash if used.")
234235
public private(set) lazy var margin: Layout.Guide = Layout.Guide(view: self)
235236

236237
public var additionalSafeAreaInsets: Insets = .zero
238+
@available(*, deprecated, message: "safeArea guide not implemented. Will crash if used.")
237239
public private(set) lazy var safeArea: Layout.Guide = Layout.Guide(view: self)
238240

239241
internal lazy var layoutGuide: Layout.Guide = Layout.Guide(view: self)

0 commit comments

Comments
 (0)