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
<div id='root'></div> | |
<div id='message'>PULL & RELEASE IMAGE UP OR DOWN</div> |
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
Meet Id Request? | |
not blank? -> Loading | |
Loading | |
server accepted -> Success | |
server rejected -> Failure | |
Success | |
load -> Display URL | |
Display URL |
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
Meet Id Request?* | |
not blank? -> Loading | |
Loading | |
server accepted -> Success | |
server rejected -> Failure | |
Success | |
load -> Display URL | |
Display URL |
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
{"lastUpload":"2018-09-18T01:56:28.554Z","extensionVersion":"v3.1.2"} |
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
var reduceView: UIView = UIView() | |
reduceView.translatesAutoresizingMaskIntoConstraints = false | |
addSubview(reduceView) | |
let label = UILabel() | |
//style label | |
label.translatesAutoresizingMaskIntoConstraints = false | |
addSubview(label) | |
var constraints = [NSLayoutConstraint]() |
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
import Foundation | |
protocol Term { | |
var value: String { get } | |
} | |
extension Term {} | |
struct Statement { | |
var terms: [Term] = [] | |
mutating func addItem(term: Term) { | |
terms.append(term) |
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
import UIKit | |
class StatementView: UIControl, Drawable { | |
var viewLocation:ViewLocation | |
let termView:TermView | |
private func setupView() { | |
termView = TermView() //gotta pass the /viewLocation enum value to TermView now | |
} | |
init(frame: CGRect, item: ViewLocation) { |
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
class PopupInputBox: UIControl { | |
let label = UILabel() | |
var item: Statement = Statement() { | |
didSet { | |
setupLabel() | |
} | |
} | |
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
class TermView: UIView { | |
var item: Term | |
convenience init(item: Term) { | |
self.init(frame:CGRectZero, item: item) | |
} | |
init(frame: CGRect, item: Term) { |
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
class TermView: UIControl { | |
var item: Term | |
convenience init(item: Term) { | |
self.init(frame:CGRectZero, item: item) | |
} | |
init(frame: CGRect, item: Term) { | |
self.item = item |
NewerOlder