Swiftpack.co - ILYA2606/UIView-Declarative as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by ILYA2606.
ILYA2606/UIView-Declarative 1.0.0
Use UIKit declaratively!
⭐️ 0
🕓 1 week ago
iOS
.package(url: "https://github.com/ILYA2606/UIView-Declarative.git", from: "1.0.0")

UIView-Declarative

SPM

Use UIKit declaratively!

UIView-Declarative is a lightweight extension for UIView that allows you to configure the view hierarchy in a declarative style, as in SwiftUI

Example

view.add(insets: .zero) {
    VStackView(spacing: 10).add {
        VSpacingView(10)
        MyHeaderView()
        MyBodyView()
        MyFooterView()
        VSpacingView(10)
    }
}

Use it with PreviewUIKit and Then

Installation

  • Using Swift Package Manager:

    import PackageDescription
    
    let package = Package(
      name: "MyAwesomeApp",
      dependencies: [
        .Package(url: "https://github.com/ILYA2606/UIView-Declarative", majorVersion: 1),
      ]
    )
    

GitHub

link
Stars: 0
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics