Releases: davidscheutz/SwiftCopy
Releases · davidscheutz/SwiftCopy
v1.2.3
Add support for struct's
with custom init
methods!
struct Example {
let value: String
let lastUpdated: Date
init(value: String) {
self.value = value
lastUpdated = .now
}
}
Previously this would've caused several compiler issues, because the code generation included the lastUpdated
member, even though it is a read only value because it can't be assigned via the constructor.
SwiftCopy.stencil now has a iterate macro
which can be used to dynamically generate code for each member of a given type.
Happy thanksgiving 🦃
v1.2.1
Fix an issue where the project's build folder was provided as input path to Sourcery, leading to a build failure:
'../Project/build' does not exist or is not readable.
Plug-in ended with non-zero exit code: 1)
v1.2.0
Changes include
Update
andBuilder
now have an additionalobjectDidChange
PassthroughSubject
, which can be used to observe changes outside SwiftUI viewsBuilder
of types that confirm toEquatable
are equipped with a methodhasChanges
.- Support shared project directories using the
XcodeProjectPlugin
target inputFiles - Updated README
v1.1.0
v1.0.1
v1.0.0
Lightweight Swift Package to code Kotlin-like copy functions for Swift types including support for optionals.
This version includes basic unit tests and proved itself in my private projects.