#swiftmacro — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #swiftmacro, aggregated by home.social.
-
EDIT: I had to mark it as trusted
I'm trying to define and use my first Swift macro. I added the package to the client project. I type import and Xcode suggests OCHamcrestMacros.
But it complains, "No such module OCHamcrestMacros". What gives? I double-checked that I added the SPM dependency to the correct target. #Swift #SwiftMacro
-
EDIT: I had to mark it as trusted
I'm trying to define and use my first Swift macro. I added the package to the client project. I type import and Xcode suggests OCHamcrestMacros.
But it complains, "No such module OCHamcrestMacros". What gives? I double-checked that I added the SPM dependency to the correct target. #Swift #SwiftMacro
-
EDIT: I had to mark it as trusted
I'm trying to define and use my first Swift macro. I added the package to the client project. I type import and Xcode suggests OCHamcrestMacros.
But it complains, "No such module OCHamcrestMacros". What gives? I double-checked that I added the SPM dependency to the correct target. #Swift #SwiftMacro
-
EDIT: I had to mark it as trusted
I'm trying to define and use my first Swift macro. I added the package to the client project. I type import and Xcode suggests OCHamcrestMacros.
But it complains, "No such module OCHamcrestMacros". What gives? I double-checked that I added the SPM dependency to the correct target. #Swift #SwiftMacro
-
EDIT: I had to mark it as trusted
I'm trying to define and use my first Swift macro. I added the package to the client project. I type import and Xcode suggests OCHamcrestMacros.
But it complains, "No such module OCHamcrestMacros". What gives? I double-checked that I added the SPM dependency to the correct target. #Swift #SwiftMacro
-
New release of IdentifiedEnumCases Swift Macro!
Rename generated ID type to `CaseID` which is less likely to collide with existing code.
Use this Swift Macro to generate an ID type for your enum cases, so that you can refer to the enum case itself when they have associated values. Requires Swift 5.9
https://github.com/FullQueueDeveloper/IdentifiedEnumCases/releases/tag/0.3.0
#WWDC23 #WWDC #iOSDev #SwiftLang #SwiftMacro #SwiftDeveloper
-
New release of IdentifiedEnumCases Swift Macro!
Rename generated ID type to `CaseID` which is less likely to collide with existing code.
Use this Swift Macro to generate an ID type for your enum cases, so that you can refer to the enum case itself when they have associated values. Requires Swift 5.9
https://github.com/FullQueueDeveloper/IdentifiedEnumCases/releases/tag/0.3.0
#WWDC23 #WWDC #iOSDev #SwiftLang #SwiftMacro #SwiftDeveloper
-
New release of IdentifiedEnumCases Swift Macro!
Rename generated ID type to `CaseID` which is less likely to collide with existing code.
Use this Swift Macro to generate an ID type for your enum cases, so that you can refer to the enum case itself when they have associated values. Requires Swift 5.9
https://github.com/FullQueueDeveloper/IdentifiedEnumCases/releases/tag/0.3.0
#WWDC23 #WWDC #iOSDev #SwiftLang #SwiftMacro #SwiftDeveloper
-
New release of IdentifiedEnumCases Swift Macro!
Rename generated ID type to `CaseID` which is less likely to collide with existing code.
Use this Swift Macro to generate an ID type for your enum cases, so that you can refer to the enum case itself when they have associated values. Requires Swift 5.9
https://github.com/FullQueueDeveloper/IdentifiedEnumCases/releases/tag/0.3.0
#WWDC23 #WWDC #iOSDev #SwiftLang #SwiftMacro #SwiftDeveloper
-
Introducing `StaticMemberIterable` Swift Macro!
Confidently cover all static members in tests or in your UI. Like CaseIterable, this macro creates an array of all the static members of a type. This is useful when a type has a few instances of itself as static members.
https://github.com/FullQueueDeveloper/StaticMemberIterable
#WWDC #SwiftMacro #iOSDev #SwiftLang #SwiftDeveloper #WWDC23
-
Introducing `StaticMemberIterable` Swift Macro!
Confidently cover all static members in tests or in your UI. Like CaseIterable, this macro creates an array of all the static members of a type. This is useful when a type has a few instances of itself as static members.
https://github.com/FullQueueDeveloper/StaticMemberIterable
#WWDC #SwiftMacro #iOSDev #SwiftLang #SwiftDeveloper #WWDC23
-
Introducing `StaticMemberIterable` Swift Macro!
Confidently cover all static members in tests or in your UI. Like CaseIterable, this macro creates an array of all the static members of a type. This is useful when a type has a few instances of itself as static members.
https://github.com/FullQueueDeveloper/StaticMemberIterable
#WWDC #SwiftMacro #iOSDev #SwiftLang #SwiftDeveloper #WWDC23
-
Introducing `StaticMemberIterable` Swift Macro!
Confidently cover all static members in tests or in your UI. Like CaseIterable, this macro creates an array of all the static members of a type. This is useful when a type has a few instances of itself as static members.
https://github.com/FullQueueDeveloper/StaticMemberIterable
#WWDC #SwiftMacro #iOSDev #SwiftLang #SwiftDeveloper #WWDC23
-
I've used this approach for typesafety of record IDs in my own projects, usually by manually copy-pasting. Now with Swift Macros in Swift 5.9, it's going to be so much easier.
#WWDC #WWDC23 #SwiftMacro #iOSDev #SwiftLang #SwiftDev -
I've used this approach for typesafety of record IDs in my own projects, usually by manually copy-pasting. Now with Swift Macros in Swift 5.9, it's going to be so much easier.
#WWDC #WWDC23 #SwiftMacro #iOSDev #SwiftLang #SwiftDev -
I've used this approach for typesafety of record IDs in my own projects, usually by manually copy-pasting. Now with Swift Macros in Swift 5.9, it's going to be so much easier.
#WWDC #WWDC23 #SwiftMacro #iOSDev #SwiftLang #SwiftDev -
I've used this approach for typesafety of record IDs in my own projects, usually by manually copy-pasting. Now with Swift Macros in Swift 5.9, it's going to be so much easier.
#WWDC #WWDC23 #SwiftMacro #iOSDev #SwiftLang #SwiftDev -
When passing strings or integers as IDs, the compiler doesn't tell you if you accidentally used a person ID where a blog post ID. Now with the `UniquelyTypedID`, the compiler will not let you pass the ID of a different model.
And with the power of `ExpressibleByStringLiteral` and `ExpressibleByIntegerLiteral`, very little code will need to change.
#WWDC #WWDC23 #SwiftMacro #iOSDev #SwiftLang #SwiftDev -
When passing strings or integers as IDs, the compiler doesn't tell you if you accidentally used a person ID where a blog post ID. Now with the `UniquelyTypedID`, the compiler will not let you pass the ID of a different model.
And with the power of `ExpressibleByStringLiteral` and `ExpressibleByIntegerLiteral`, very little code will need to change.
#WWDC #WWDC23 #SwiftMacro #iOSDev #SwiftLang #SwiftDev -
When passing strings or integers as IDs, the compiler doesn't tell you if you accidentally used a person ID where a blog post ID. Now with the `UniquelyTypedID`, the compiler will not let you pass the ID of a different model.
And with the power of `ExpressibleByStringLiteral` and `ExpressibleByIntegerLiteral`, very little code will need to change.
#WWDC #WWDC23 #SwiftMacro #iOSDev #SwiftLang #SwiftDev -
When passing strings or integers as IDs, the compiler doesn't tell you if you accidentally used a person ID where a blog post ID. Now with the `UniquelyTypedID`, the compiler will not let you pass the ID of a different model.
And with the power of `ExpressibleByStringLiteral` and `ExpressibleByIntegerLiteral`, very little code will need to change.
#WWDC #WWDC23 #SwiftMacro #iOSDev #SwiftLang #SwiftDev -
When passing strings or integers as IDs, the compiler doesn't tell you if you accidentally used a person ID where a blog post ID. Now with the `UniquelyTypedID`, the compiler will not let you pass the ID of a different model.
And with the power of `ExpressibleByStringLiteral` and `ExpressibleByIntegerLiteral`, very little code will need to change.
#WWDC #WWDC23 #SwiftMacro #iOSDev #SwiftLang #SwiftDev -
Introducing UniquelyTypedID, a new Swift Macro!
Use unique types for type-safety when passing IDs around.
Currently supports String, Int, & UUID. The default is UUID.
```swift
struct BlogPost {
@UniquelyTypedID(Int.self) let id: ID
let text: String
}
``` -
Introducing UniquelyTypedID, a new Swift Macro!
Use unique types for type-safety when passing IDs around.
Currently supports String, Int, & UUID. The default is UUID.
```swift
struct BlogPost {
@UniquelyTypedID(Int.self) let id: ID
let text: String
}
``` -
Introducing UniquelyTypedID, a new Swift Macro!
Use unique types for type-safety when passing IDs around.
Currently supports String, Int, & UUID. The default is UUID.
```swift
struct BlogPost {
@UniquelyTypedID(Int.self) let id: ID
let text: String
}
``` -
Introducing UniquelyTypedID, a new Swift Macro!
Use unique types for type-safety when passing IDs around.
Currently supports String, Int, & UUID. The default is UUID.
```swift
struct BlogPost {
@UniquelyTypedID(Int.self) let id: ID
let text: String
}
``` -
Introducing UniquelyTypedID, a new Swift Macro!
Use unique types for type-safety when passing IDs around.
Currently supports String, Int, & UUID. The default is UUID.
```swift
struct BlogPost {
@UniquelyTypedID(Int.self) let id: ID
let text: String
}
``` -
New release of `IdentifiedEnumCases` Swift Macro!
Generate public members when the annotated enum is public!
https://github.com/FullQueueDeveloper/IdentifiedEnumCases/releases/tag/0.2.0
-
New release of `IdentifiedEnumCases` Swift Macro!
Generate public members when the annotated enum is public!
https://github.com/FullQueueDeveloper/IdentifiedEnumCases/releases/tag/0.2.0
-
New release of `IdentifiedEnumCases` Swift Macro!
Generate public members when the annotated enum is public!
https://github.com/FullQueueDeveloper/IdentifiedEnumCases/releases/tag/0.2.0
-
New release of `IdentifiedEnumCases` Swift Macro!
Generate public members when the annotated enum is public!
https://github.com/FullQueueDeveloper/IdentifiedEnumCases/releases/tag/0.2.0
-
New release of `IdentifiedEnumCases` Swift Macro!
Generate public members when the annotated enum is public!
https://github.com/FullQueueDeveloper/IdentifiedEnumCases/releases/tag/0.2.0
-
Introducing `IdentifiedEnumCases`!
When your Swift enumeration has associated values, you can't refer to the cases without an associated value.
I've proven this approach by manually copy-pasting in my Swift 5.7 projects. And now, this functionality is available as an easy annotation.
```swift
@IdentifiedEnumCases
enum Nightshade {
case potato(PotatoVariety)
case tomato(TomatoVariety)
case chili(ChiliVariety)
}
``` -
Introducing `IdentifiedEnumCases`!
When your Swift enumeration has associated values, you can't refer to the cases without an associated value.
I've proven this approach by manually copy-pasting in my Swift 5.7 projects. And now, this functionality is available as an easy annotation.
```swift
@IdentifiedEnumCases
enum Nightshade {
case potato(PotatoVariety)
case tomato(TomatoVariety)
case chili(ChiliVariety)
}
``` -
Introducing `IdentifiedEnumCases`!
When your Swift enumeration has associated values, you can't refer to the cases without an associated value.
I've proven this approach by manually copy-pasting in my Swift 5.7 projects. And now, this functionality is available as an easy annotation.
```swift
@IdentifiedEnumCases
enum Nightshade {
case potato(PotatoVariety)
case tomato(TomatoVariety)
case chili(ChiliVariety)
}
``` -
Introducing `IdentifiedEnumCases`!
When your Swift enumeration has associated values, you can't refer to the cases without an associated value.
I've proven this approach by manually copy-pasting in my Swift 5.7 projects. And now, this functionality is available as an easy annotation.
```swift
@IdentifiedEnumCases
enum Nightshade {
case potato(PotatoVariety)
case tomato(TomatoVariety)
case chili(ChiliVariety)
}
```