Swiftpack.co - SwiftFoxx/DeclarativeSwift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by SwiftFoxx.
SwiftFoxx/DeclarativeSwift 1.0.5
Enhanced Swift experience by making the syntax as declarative as SwiftUI
⭐️ 2
🕓 1 year ago
iOS
.package(url: "https://github.com/SwiftFoxx/DeclarativeSwift.git", from: "1.0.5")

alt text

DeclarativeSwift

DeclarativeSwift

Overview

Enjoy writing Swift code by shortening the hassel to call the same property again and again.

This library helps writing UI codes with much simplicity.

Description

The idea od DeclarativeSwift is driven from the syntax of SwiftUI. The Framework makes UI codes easy and clean. But in Swift, the developers would have to write tedious and repetitive lines code. That's why I decided to make swift easier and more fun.

Note: This library is still in development mode. You're invited to fork and create pull requests. Credits will be given appropriately.

Line Swift Line DeclarativeSwift
1 let myView = UIView(frame: viewFrame) 1 let myView = UIView(frame: viewFrame)
2 myView.layer.cornerRadius = 12 .roundingCorners(by: 12)
3 myView.layer.shadowColor = .black .addingShadow(color: .black)

Installation

Package

From Xcode go to File > Swift Packages > Add Package; for Xcode 13+, File > Add Packages. Copy the repo URL and paste it in the search box. Set the version to next mejor from 1.0.1

CocoaPods

Add this to the Podfile:

pod 'DeclarativeSwift'

Then run this in the Terminal

pod install

GitHub

link
Stars: 2
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

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