Swiftpack.co -  0xLet/SwiftFu as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
0xLet/SwiftFu
➕ Swift Function Upgrades
.package(url: "https://github.com/0xLet/SwiftFu.git", from: "1.0.1")

SwiftFu

Swift Function Upgrades

Example

SomeClass()
    .modify { (object) in
        object.value = "Hello, World!"
    }
    .configure { (object) in
        object.value += "++"
    }
    .func { _ in
        SomeStruct(value: "New Value!")
    }
    .assert { (object) in
        object.value == "New Value!"
    }
    .sout()

GitHub

link
Stars: 10
Last commit: 5 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.

Release Notes

1.0.1
5 weeks ago

Protocols

Assertable

Boolable

Configurable

Functionable

Modifiable

Printable

Tuplable

Functions

switchmap

switcheffect

Math

BinaryFloatingPoint

BinaryInteger

Optional

func replace(nilWith value: Wrapped) -> Wrapped

Fuable

public protocol Fuable: Printable, Modifiable,
                 Boolable, Functionable,
                 Tuplable, Assertable { }
public protocol FuableClass: Fuable, Configurable { }

Swift + SwiftFu

extension Optional: Fuable { }

extension String: Fuable { }
extension Character: Fuable { }
extension Int: Fuable { }
extension Double: Fuable { }
extension Float: Fuable { }
extension Bool: Fuable { }

extension Array: Fuable { }
extension Dictionary: Fuable { }
extension Set: Fuable { }

Foundation + SwiftFu

extension Data: Fuable { }
extension Date: Fuable { }
extension URL: Fuable { }
extension URLRequest: Fuable { }

extension NSObject: FuableClass { }

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