16 open-source projects similar to tgeisse/userdefaultsobservation, ranked by how many features they have in common. Compare stars, activity and what each one does to find the best UserDefaultsObservation alternative.
@Buildable is an attached swift macro for structs, classes and enums, which produces a peer struct implementing the builder pattern. Initialise your object with minimal effort using default values. ```swift import Buildable
While macros are still very fresh inspired by work done by Doug Gregor here this repo aims to help get familliar with the macros by exploring their capabilities.
A Swift macro that generates realistic mock/fake data for structs, classes, and enums — perfect for SwiftUI previews and snapshot tests.
✨ Swift Macro, Parsing Sealed Class JSON Model. (ex. kotlin server's sealed class json)
A macro for emulating C-like static arrays in the swift language
MacroCodableKit enhances your Codable experience in Swift, leveraging macros to generate precise and efficient code with zero additional memory allocations, thanks to the usage of pure (static) functions. It's a comprehensive solution providing support for AllOf, OneOf, and customizable…
BuildableMacro is a Swift package inspired by Apple's SwiftUI and Observation frameworks, simplifying property modification in Swift through automated fluent setter function generation.
CodableOptionSet allows you to easily make your OptionSets conform to Codable and automatically cover init(from decoder: Decoder) and encode(to encoder: Encoder) for you. All you need to do is to add @EasilyCodableOptionSet to your OptionSet.
ListableProperties macro allows to list all the properties of a struct, class and other types by adding static getProperties() func to it. All you need to do is to add @ListableProperties to your model.
This repository contains a list of Swift Macros to make your coding live on Apple ecosystem simpler and more productive.
Swift Macro that automatically generates CodingKeys for converting snake_case to lowerCamelCase.
CodingKeysMacro-swift is an incredibly powerful Swift Compiler Plugin that introduces an automated way to generate CodingKeys for Codable structs in Swift. This eliminates the need for manually declaring CodingKeys enumeration for every Codable struct, saving you valuable time and reducing the…
Supercharge Swift's Codable implementations with macros.
SwiftCopyableMacro is a very simple Swift macro library that auto-generates a copy() function for structs at compile time, which takes all the public properties of the struct as arguments in the function, enabling a runtime ability to elegantly duplicate an instance of the struct and setting new…
An experimental Mirror alternative that utilizes Swift Macros for static reflection.
Swift macros generating customizable CodingKeys