Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
Added direction support in LOKLayoutArrangement class (#219)
Browse files Browse the repository at this point in the history
- Added new method `makeViews(in:direction:)` in LOKLayoutArrangement` class.
- This method takes `UserInterfaceLayoutDirection` as 2nd parameter.
- So caller can send language direction to LOKLayoutArrangement similar to LayoutArrangement.
  • Loading branch information
nbadakh authored and staguer committed Jul 18, 2018
1 parent cb8d231 commit 169821a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Sources/ObjCSupport/LOKLayoutArrangement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,14 @@ import CoreGraphics
height: height.isFinite ? height : nil))
}

@objc public func makeViews(in view: View?) {
layoutArrangement.makeViews(in: view)
@discardableResult
@objc public func makeViews(in view: View?) -> View {
return layoutArrangement.makeViews(in: view)
}

@discardableResult
@objc public func makeViews(in view: View?, direction: UserInterfaceLayoutDirection) -> View {
return layoutArrangement.makeViews(in: view, direction: direction)
}

@objc public func makeViews() -> View {
Expand Down

0 comments on commit 169821a

Please sign in to comment.