Swiftpack.co -  tifoaudii/TifoKit as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
tifoaudii/TifoKit
A declarative UIKit for improve layout productivity when developing an iOS application
.package(url: "https://github.com/tifoaudii/TifoKit.git", from: "v1.0.1")

TifoKit

A declarative UIKit for improve layout productivity when developing an iOS application

Requirements

  • Min. iOS 11
  • Swift 5+

Installation

Currently only available via Swift Package Manager

Example Usage

class ViewController: UIViewController, LayoutStackBehaviour {
    override func viewDidLoad() {
        super.viewDidLoad()
        VStack {
            HStack {
                UIView()
                    .setBackgroundColor(.black)
                UIView()
                    .setBackgroundColor(.purple)
                UIView()
                    .setBackgroundColor(.red)
            }
            .setDistribution(.fillEqually)
            .setSpacing(10)
            UIView()
                .setBackgroundColor(.blue)
            UIView()
                .setBackgroundColor(.yellow)
        }
        .setDistribution(.fillEqually)
        .setSpacing(10)
        .setHorizontalMargins(10)
    }
}

License

TifoKit is released under the MIT license.

GitHub

link
Stars: 15
Last commit: 1 week 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.

Release Notes

Fix access modifier issue on ViewHelper.swift
1 week ago

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