Skip to content

Swift Macro: generate CodingKeys for converting PascalCase to lowerCamelCase

Notifications You must be signed in to change notification settings

mingso/CamelyPascal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CamelyPascal

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부터 동작합니다.

About

Swift Macro: generate CodingKeys for converting PascalCase to lowerCamelCase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages