Skip to content

Instantly share code, notes, and snippets.

@chungbkhn
chungbkhn / Namespace.swift
Last active November 24, 2018 08:06
Namespace in Swift
import UIKit
// Module "Model"
enum Model {}
// Static variable in namespace "Model"
extension Model {
static let defaultName = "anyone"
static let defaultPassword = "Awesome"
static let defaultLevel: Account.Level = .basic