Swiftpack.co - Package - noppefoxwolf/ContainerView

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

noppefoxwolf/ContainerView

Typesafe embed content.

ContainerView

Embed Content

Support UIView, UIViewController.(and customizable more yourself.)


class ViewController: UIViewController, Embedable {}

let containerView = ContainerView<ViewController>(frame: .zero)
let vc = ViewController()
containerView.embed(vc, parent: self)

Digup Content

containerView.digUp()

Access Content

containerView.content?.backgroundColor

Github

link
Stars: 1
Last commit: 1 week ago