Skip to content

Latest commit

 

History

History

0053-swift-syntax-enum-properties

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

This directory contains code from Point-Free Episode: Swift Syntax Enum Properties

We've seen how "enum properties" help close the gap between the ergonomics of accessing data on structs and enums, but defining them by hand requires a lot of boilerplate. This week we join forces with Apple's Swift Syntax library to generate this boilerplate automatically!

Getting Started

  • Clone repo
  • cd into EnumProperties
  • run swift package generate-xcodeproj
  • Open the generated EnumProperties.xcodeproj file
  • Build the package
  • Open EnumProperties.playground