# Introducing SwiftMacrosKit and PermissionKit

**URL:** <https://forums.swift.org/t/introducing-swiftmacroskit-and-permissionkit/86925>\
**Category:** Community Showcase\
**Tags:** macos, ios, macros, swift-package\
**Created:** [May 26, 2026, 3:11am UTC](https://forums.swift.org/t/introducing-swiftmacroskit-and-permissionkit/86925 "2026-05-26T03:11:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damu](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/damu/32/45389_2.png) [@Damu](https://forums.swift.org/u/Damu)\
**Post date:** [May 26, 2026, 3:11am UTC](https://forums.swift.org/t/introducing-swiftmacroskit-and-permissionkit/86925/1 "2026-05-26T03:11:45Z")

</div>

I’ve recently open-sourced two Swift packages aimed at reducing boilerplate and improving developer ergonomics across Apple platforms.

**SwiftMacrosKit**

SwiftMacrosKit provides 100+ Swift macros across multiple categories:

- Creational patterns  
@Singleton, @Builder, @Factory

- Validation & constraints  
@Validated, @Email, @RegexValidated

- Async & concurrency  
@Retry, @Timeout, @Debounce

- Persistence  
@UserDefault, @Keychain, @CloudSync, @CoreData

- Networking  
@Endpoint, @GET, @POST, @MockResponse

- Additional utilities for SwiftUI, logging, security, testing, and more.

The goal is to reduce repetitive infrastructure code while keeping APIs lightweight and idiomatic to Swift.

**PermissionKit**

PermissionKit is a unified permissions framework for Apple platforms.

Features include:

- Async/await-first API

- Support for 45+ Apple permissions

- iOS, macOS, watchOS, and tvOS support

- Combine and AsyncStream integrations

- SwiftUI permission components

- CLI support for Info.plist and entitlement generation

- Built-in testing utilities

- Zero external dependencies

## Links

SwiftMacrosKit

> **[GitHub - damodarnamala/SwiftMacrosKit: SwiftMacrosKit](https://github.com/damodarnamala/SwiftMacrosKit)**
>
> SwiftMacrosKit

PermissionKit

> **[GitHub - damodarnamala/PermissionKit: PermissionKit — A unified, async/await-first...](https://github.com/damodarnamala/PermissionKit)**
>
> PermissionKit — A unified, async/await-first permissions framework for all Apple platforms. One-line permission requests, SwiftUI components, combinators, Combine/AsyncStream bridges, and built-in mocking. Zero dependencies. iOS 16+ · macOS 13+ · watchOS 9+ · tvOS 16+

Both packages are MIT licensed, SPM-compatible, and actively maintained.

Feedback, contributions, suggestions, and issue reports are very welcome.

---

<div class="post-metadata">

**Author:** ![supermage](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/supermage/32/45033_2.png) [@supermage](https://forums.swift.org/u/supermage)\
**Post date:** [May 26, 2026, 10:05pm UTC](https://forums.swift.org/t/introducing-swiftmacroskit-and-permissionkit/86925/2 "2026-05-26T22:05:45Z")

</div>

The most interesting part in this macros was the Networking part for me.

Nice Job​👌

---

<div class="post-metadata">

**Author:** ![Damu](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/damu/32/45389_2.png) [@Damu](https://forums.swift.org/u/Damu)\
**Post date:** [May 29, 2026, 7:10am UTC](https://forums.swift.org/t/introducing-swiftmacroskit-and-permissionkit/86925/3 "2026-05-29T07:10:00Z")

</div>

I’d really appreciate it if you could take a look at the repositories and share your experience and feedback.

- Suggestions for enhancements or new macros are welcome.
- Any fixes or improvements to the existing macros would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![jaleel](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jaleel/32/45076_2.png) [@jaleel](https://forums.swift.org/u/jaleel)\
**Post date:** [May 29, 2026, 9:06am UTC](https://forums.swift.org/t/introducing-swiftmacroskit-and-permissionkit/86925/4 "2026-05-29T09:06:35Z")

</div>

A bit off topic, but imho builder and factory patterns make no sense in Swift: for builder just create additional init and factory for enum not adding any meaningful stuff.
