Created
June 10, 2015 06:48
-
-
Save qdequele/7b2bd6c27000d500f6f7 to your computer and use it in GitHub Desktop.
How to create basic object in swift (email short exemple)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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