Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 698 Bytes

File metadata and controls

14 lines (11 loc) · 698 Bytes

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