Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
Making rendering methods public again
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfonsecazup committed Sep 2, 2020
1 parent 7be428d commit d105c9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iOS/Sources/Beagle/Sources/Renderer/BeagleRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ public struct BeagleRenderer {
}

/// main function of this class. Call it to transform a Component into a UIView
func render(_ component: BeagleSchema.RawComponent) -> UIView {
public func render(_ component: BeagleSchema.RawComponent) -> UIView {
let view = makeView(component: component)

setupView(view, of: component)

return view
}

func render(_ children: [BeagleSchema.RawComponent]) -> [UIView] {
public func render(_ children: [BeagleSchema.RawComponent]) -> [UIView] {
return children.map { render($0) }
}

Expand Down

0 comments on commit d105c9c

Please sign in to comment.