This post is from 2014, about 12 years ago. Some of it may be out of date.

▸ Github's Swift Style Guide

1 min readiOS Development

Jake Marsh

Github:

This is an attempt to encourage patterns that accomplish the following goals (in rough priority order):

  • Increased rigor, and decreased likelihood of programmer error
  • Increased clarity of intent
  • Reduced verbosity
  • Fewer debates about aesthetics

Some fantastic guidance in here.

One of my favorites is the bit about preferring Structs to Classes when writing Swift. This makes value types simpler, and can also be a bit easier on the eyes without all those extra inits hanging around.

Link: github.com/github/swift-style-guide