-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
33 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// Tweet.swift | ||
// SwifterDemoMac | ||
// | ||
// Created by Andy Liang on 2018-07-11. | ||
// Copyright © 2018 Matt Donnelly. All rights reserved. | ||
// | ||
|
||
import Cocoa | ||
|
||
class Tweet: NSObject { | ||
|
||
// the name of the poster | ||
@objc dynamic let name: String | ||
|
||
// the text of the tweet | ||
@objc dynamic let text: String | ||
|
||
init(name: String, text: String) { | ||
self.name = name | ||
self.text = text | ||
super.init() | ||
} | ||
|
||
} |
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