Swift Class Style Guide

February 26, 2020

Writing and reading a file should be predictable. This is how I organize my Swift files.

Protocol

Class
  weak var delegate

  public static let
  private static let

  public let/var
  private let/var

  override let/var

  override func (init, deinit, viewDidLoad, etc.)

  @objc func

  public func

  private func

extension class