File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Sources/DeclarativeLayoutKit/AutoLayout Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,11 @@ public extension AutoLayoutItemConvertible {
113113 . rightAnchor ( anchor. toAxisAnchor ( anchorPath: { $0. rightAnchor } ) )
114114 }
115115
116+ func directionalHorizontalAnchor( _ anchor: BidirectionRelativeAutoLayoutAnchorConvertible ) -> AutoLayoutItem {
117+ leadingAnchor ( anchor. toAxisAnchor ( anchorPath: { $0. leadingAnchor } ) )
118+ . trailingAnchor ( anchor. toAxisAnchor ( anchorPath: { $0. trailingAnchor } ) )
119+ }
120+
116121 func centerAnchor( _ anchor: BidirectionRelativeAutoLayoutAnchorConvertible ) -> AutoLayoutItem {
117122 centerYAnchor ( anchor. toAxisAnchor ( anchorPath: { $0. centerYAnchor } ) )
118123 . centerXAnchor ( anchor. toAxisAnchor ( anchorPath: { $0. centerXAnchor } ) )
You can’t perform that action at this time.
0 commit comments