Here is an example of practicing the use of Swift macros.
This example generate CodingKeys for converting PascalCase to lowerCamelCase.
There may be errors in this example, so please consider it as a beginner's example!
This works from Swift 5.9.
우당탕탕 Swift macro 사용 연습입니다.
camelCase로 모델을 작성했을 때, PascalCase의 CodingKeys를 매크로를 통해 작성하는 예시입니다.
틀린 부분이 있을 수 있습니다. 초보자의 예시 정도로 봐주세요!
Swift 5.9부터 동작합니다.