Skip to content

🚧 A collection of useful macro definitions for Swift. (WIP)

Notifications You must be signed in to change notification settings

BinaryBirds/swift-macros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftMacros

🚧 A collection of useful macro definitions for Swift. (WIP)

Getting started

Just use the following dependency to your project.

.package(url: "https://github.com/binarybirds/swift-macros", branch: "main"),

Don't forget to add the SwiftMacros product to your target.

.product(name: "SwiftMacros", package: "swift-macros"),

Useful macros

Init

Generates a public init for objects.

import Foundation
import SwiftMacros

@Init
public struct Something: Codable {
    let foo: String
    let bar: Int
    let hello: Bool?

}

That's all for now.

About

🚧 A collection of useful macro definitions for Swift. (WIP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages