Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/noppefoxwolf/containerview

Typesafe embed content.
https://github.com/noppefoxwolf/containerview

Last synced: 29 days ago
JSON representation

Typesafe embed content.

Awesome Lists containing this project

README

        


ContainerView


## Embed Content

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

```swift

class ViewController: UIViewController, Embedable {}

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

```

## Digup Content

```swift
containerView.digUp()
```

## Access Content

```swift
containerView.content?.backgroundColor
```