dan-hart/DHDeclarable
Declarative UIKit for iOS apps
DHDeclarable
[[run tests]](https://github.com/dan-hart/DHDeclarable/actions/workflows/test.yml) [[codecov]](https://codecov.io/gh/dan-hart/DHDeclarable) [[GitHub license]](https://github.com/dan-hart/DHDeclarable/blob/main/LICENSE) [[GitHub issues]](https://github.com/dan-hart/DHDeclarable/issues) [[Twitter]](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Fdan-hart%2FDHDeclarable)
🌉 A bridge from UIKit to SwiftUI
import DHDeclarable
class ViewController: DHDViewController {
override var titled: String? { "DHDeclarable" }
override var renderingMode: DHDViewControllerContentRenderingMode { .center }
override var body: UIView {
get {
DHDLabel("Hello, World!")
.tagged(viewTag)
}
set { super.body = newValue }
}
}<img src="https://user-images.githubusercontent.com/13913605/159046409-251ba885-fd6c-48af-a728-a49c85686ae4.JPG" height="500">
Tired of Storyboards? Not ready for SwiftUI?
DHDeclarableadds declarative syntax toUIKit- No more assigning constraints in Interface Builder
- One source of truth for your user interface code
Getting Started
Available as a Swift Package: https://github.com/dan-hart/DHDeclarable
[["Buy Me A Coffee"]](https://www.buymeacoffee.com/codedbydan)
Package Metadata
Repository: dan-hart/DHDeclarable
Homepage: https://dan-hart.github.io/DHDeclarable/
Stars: 4
Forks: 1
Open issues: 0
Default branch: main
Primary language: swift
License: GPL-3.0
Topics: declarative, swift, uikit
README: README.md