Skip to content

Instantly share code, notes, and snippets.

@qdequele
Created June 10, 2015 06:48
Show Gist options
  • Save qdequele/7b2bd6c27000d500f6f7 to your computer and use it in GitHub Desktop.
Save qdequele/7b2bd6c27000d500f6f7 to your computer and use it in GitHub Desktop.
How to create basic object in swift (email short exemple)
//
// email.swift
//
// Created by Quentin De Quelen on 04/06/15.
//
class Email{
var active : Bool
var paused : Bool
let label : String
let email : String
init(
active : Bool,
paused : Bool,
label : String,
email : String){
self.active = active
self.paused = paused
self.label = label
self.email = email
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment