VDChain

main

Properties chaining
dankinsoid/VDChain

VDChain

CI Status Version License Platform

Description

Combination of @dynamicMemberLookup with KeyPathes and callAsFunction

let label = UILabel()~
  .text("Text")
  .textColor(.red)
  .font(.system(24))
  .apply()

Installation

  1. Swift Package Manager

Create a Package.swift file.

// swift-tools-version:5.0
import PackageDescription

let package = Package(
  name: "SomeProject",
  dependencies: [
    .package(url: "https://github.com/dankinsoid/VDChain.git", from: "2.5.2")
  ],
  targets: [
    .target(name: "SomeProject", dependencies: ["VDChain"])
  ]
)
$ swift build
  1. CocoaPods

Add the following line to your Podfile:

pod 'VDChain'

and run pod update from the podfile directory first.

Author

dankinsoid, voidilov@gmail.com

License

VDChain is available under the MIT license. See the LICENSE file for more info.

Description

  • Swift Tools 5.1.0
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Nov 21 2022 04:55:46 GMT-0500 (GMT-05:00)