# SwiftUtils package

**URL:** <https://forums.swift.org/t/swiftutils-package/80149>\
**Category:** Community Showcase\
**Created:** [May 26, 2025, 11:56pm UTC](https://forums.swift.org/t/swiftutils-package/80149 "2025-05-26T23:56:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Genaro-Chris](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/genaro-chris/32/24997_2.png) [@Genaro-Chris](https://forums.swift.org/u/Genaro-Chris)\
**Post date:** [May 26, 2025, 11:56pm UTC](https://forums.swift.org/t/swiftutils-package/80149/1 "2025-05-26T23:56:59Z")

</div>

Have been working a small experiment "yet another swift utility package 😅" for some time now and I thought I should announce it here

**About**  
Provides some useful constructs that I feel like imho that swift currently lacks such as Variant or Union [here](https://forums.swift.org/t/pitch-property-based-type-narrowing-and-union-types/78871)

 ![1000117396](https://global.discourse-cdn.com/swift/original/3X/4/6/4689ef2accb8b9bfef4cbe7970540f8e65793d97.jpeg)

Not to bore you with too much details. Here is  
[SwiftUtils](https://github.com/Genaro-Chris/SwiftUtils) 🎉🎉🎉

---

<div class="post-metadata">

**Author:** ![bbrk24](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/bbrk24/32/27370_2.png) [@bbrk24](https://forums.swift.org/u/bbrk24)\
**Post date:** [May 27, 2025, 1:53pm UTC](https://forums.swift.org/t/swiftutils-package/80149/2 "2025-05-27T13:53:56Z")

</div>

A variant type is definitely useful, but looking at the code I don't understand why it's littered with `@_transparent` and `@_alwaysEmitIntoClient`. I thought AEIC was exclusively for the standard library where it's built into the OS on Apple platforms and you don't have the source code when you use it, not for public packages where you have to download and compile it yourself anyways. And `@_transparent` feels semantically wrong due to the way it alters the call stack in debug mode; `@inlinable` I could understand, but I don't get `@_transparent`.

Also, how are you using the Builtin module?

---

<div class="post-metadata">

**Author:** ![Genaro-Chris](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/genaro-chris/32/24997_2.png) [@Genaro-Chris](https://forums.swift.org/u/Genaro-Chris)\
**Post date:** [May 28, 2025, 5:31am UTC](https://forums.swift.org/t/swiftutils-package/80149/3 "2025-05-28T05:31:50Z")

</div>

Was hoping it would gain much traction so I could make an evolution proposal for it. Builtin module is needed for some things the package provides
