Super Simple Swift Macro Part 2
Normal | Expand |
---|---|
![]() |
![]() |
This is a sample project that adds a macro for generating constructors for public structs or classes to an existing app project.
.
├── Sandbox
│ ├── Sandbox
│ │ ├── Sandbox.xctestplan
│ │ └── SandboxApp.swift
│ └── Sandbox.xcodeproj
├── packages
│ ├── Package.swift
│ ├── Sources
│ │ ├── App
│ │ │ └── ContentView.swift
│ │ ├── Entity
│ │ │ └── Entity.swift
│ │ ├── Macros
│ │ │ └── Difinitions.swift < Macro's difinition file
│ │ └── Plugins
│ │ └── PublicInitialization.swift < Macro's implementation file
│ └── Tests
│ └── PluginTests
│ └── PublicInitializationTests.swift
└── public-initialize-macro.xcworkspace