Swift DSL

Open-source Swift projects categorized as DSL

Top 14 Swift DSL Projects

  • SnapKit

    A Swift Autolayout DSL for iOS & OS X

    Project mention: Storyboard vs Programmatic UI | /r/swift | 2023-04-26

    I’ve been using Xcode for the last 13 years or so, and my advice is - us whatever is comfortable and makes sense to you. I use all 3: code*, storyboard and interface builder (xib). They all have their strengths and weaknesses. Storyboards are nice for quick simple screens with table/collection views and cell templates, but sucks when working in a team (merge conflicts on xml files is not fun). Interface builder has the advantage of being really quick for standalone viewcontrollers and views (after some code that takes away the boilerplate part of loading views from nibs) and minimized the git issues. And code is fun when you’re using anchors and frameworks like snapkit (https://github.com/SnapKit/SnapKit) but even when I was doing visual constrains using strings it was fine. Anyway, just try to learn a bit of everything and see what resonates with you. There are no right answers, just preferences.

  • Stevia

    :leaves: Concise Autolayout code

  • Appwrite

    Appwrite - The open-source backend cloud platform. The open-source backend cloud platform for developing Web, Mobile, and Flutter applications. You can set up your backend faster with real-time APIs for authentication, databases, file storage, cloud functions, and much more!

  • Plot

    A DSL for writing type-safe HTML, XML and RSS in Swift. (by JohnSundell)

  • swift-request

    Declarative HTTP networking, designed for SwiftUI

  • orion

    Elegant tweak development in pure Swift (by theos)

    Project mention: What changes have occurred in the past three years | /r/jailbreakdevelopers | 2023-04-29

    Not a ton has changed really ... tweaks can be made in swift with Orion(which is still not in upstream theos yet), a lot of theos bugs have been squashed and few new ones introduced, and, yeah, rootless which is very much a WIP on all sides. I tried to compile some rootless-related info here which may be of some help

  • Lima

    Declarative UI for iOS (by HTTP-RPC)

    Project mention: Show HN: Sierra, a DSL for building Java Swing applications | news.ycombinator.com | 2023-01-01

    Sierra is actually inspired by Lima, a UIKit DSL I created in Swift before SwiftUI was announced:

    https://github.com/HTTP-RPC/Lima

  • MondrianLayout

    🏗 A way to build AutoLayout rapidly than using InterfaceBuilder(XIB, Storyboard) in iOS.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • Syntax

    Write value-driven parsers quickly in Swift with an intuitive SwiftUI-like DSL (by nerdsupremacist)

  • CompositionalLayoutDSL

    CompositionalLayoutDSL, library to simplify the creation of UICollectionViewCompositionalLayout. It wraps the UIKit API and makes the code shorter and easier to read.

  • AppKid

    UI toolkit for Linux in Swift. Powered by Vulkan

  • Pin

    📌 A tiny library that makes working with AutoLayout easier. Only 200 lines of code. (by mezhevikin)

    Project mention: 📌 Pin — a tiny library that makes working with AutoLayout easier | /r/swift | 2022-11-04

    https://github.com/mezhevikin/Pin.git

  • Artisan

    Artisan is an MVVM framework for Swift using the bonding features from Pharos and constraints builder from Draftsman. (by hainayanda)

  • Syringe

    A lightweight dependency injection(DI) framework written in Swift. (by broken-bytes)

    Project mention: Attempt at modern DI framework replacement for Swinject | /r/iOSProgramming | 2023-03-22
  • constraints

    An UIKit AutoLayout DSL (by SimeonRumy)

    Project mention: Writing a UIKit AutoLayout DSL with Swift's Operator Overloading and Result Builders 🏗️ | /r/iosdev | 2022-11-25

    Github

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-04-29.

Swift DSL related posts

Index

What are some of the best open-source DSL projects in Swift? This list will help you:

Project Stars
1 SnapKit 19,514
2 Stevia 3,332
3 Plot 1,901
4 swift-request 716
5 orion 176
6 Lima 174
7 MondrianLayout 157
8 Syntax 143
9 CompositionalLayoutDSL 55
10 AppKid 42
11 Pin 9
12 Artisan 7
13 Syringe 4
14 constraints 3
Free Global Payroll designed for tech teams
Building a great tech team takes more than a paycheck. Zero payroll costs, get AI-driven insights to retain best talent, and delight them with amazing local benefits. 100% free and compliant.
try.revelo.com