Swiftpack.co -  SwiftFoxx/DeclarativeSwift as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Enhanced Swift experience by making the syntax as declarative as SwiftUI
.package(url: "https://github.com/SwiftFoxx/DeclarativeSwift.git", from: "1.0.4")

alt text



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.


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)



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


Add this to the Podfile:

pod 'DeclarativeSwift'

Then run this in the Terminal

pod install


Stars: 1
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

More Classes Included
2 weeks ago

Added extensions and declarative functions for UItextView, UItextField and UIButton.

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