Skip to content

Commit

Permalink
fix: change access modifier on ViewHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
tifoaudii committed Jun 3, 2021
1 parent 5abccae commit 61152b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/TifoKit/Core UI/ViewHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ public protocol LayoutStackBehaviour {

extension LayoutStackBehaviour where Self: UIViewController {
@discardableResult
func HStack<Component: LayoutComponent>(@LayoutStackBuilder components: () -> Component) -> StackComponent<Component> {
public func HStack<Component: LayoutComponent>(@LayoutStackBuilder components: () -> Component) -> StackComponent<Component> {
let stack = StackComponent(components: components).setAxis(.horizontal)
view.addSubview(stack)
stack.fillSuperview()
return stack
}

@discardableResult
func VStack<Component: LayoutComponent>(@LayoutStackBuilder components: () -> Component) -> StackComponent<Component> {
public func VStack<Component: LayoutComponent>(@LayoutStackBuilder components: () -> Component) -> StackComponent<Component> {
let stack = StackComponent(components: components).setAxis(.vertical)
view.addSubview(stack)
stack.fillSuperview()
Expand All @@ -33,15 +33,15 @@ extension LayoutStackBehaviour where Self: UIViewController {
extension LayoutStackBehaviour where Self: UIView {

@discardableResult
func HStack<Component: LayoutComponent>(@LayoutStackBuilder components: () -> Component) -> StackComponent<Component> {
public func HStack<Component: LayoutComponent>(@LayoutStackBuilder components: () -> Component) -> StackComponent<Component> {
let stack = StackComponent(components: components).setAxis(.horizontal)
addSubview(stack)
stack.fillSuperview()
return stack
}

@discardableResult
func VStack<Component: LayoutComponent>(@LayoutStackBuilder components: () -> Component) -> StackComponent<Component> {
public func VStack<Component: LayoutComponent>(@LayoutStackBuilder components: () -> Component) -> StackComponent<Component> {
let stack = StackComponent(components: components).setAxis(.vertical)
addSubview(stack)
stack.fillSuperview()
Expand Down

0 comments on commit 61152b8

Please sign in to comment.