Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noppefoxwolf/containerview
Typesafe embed content.
https://github.com/noppefoxwolf/containerview
Last synced: 29 days ago
JSON representation
Typesafe embed content.
- Host: GitHub
- URL: https://github.com/noppefoxwolf/containerview
- Owner: noppefoxwolf
- Created: 2018-12-31T12:10:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-19T20:12:19.000Z (over 3 years ago)
- Last Synced: 2024-05-02T05:45:53.624Z (6 months ago)
- Language: Swift
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```