Update example

This commit is contained in:
Keith Smiley
2018-04-01 23:37:22 -07:00
parent 7b83a9ba5b
commit d76f3a92eb

View File

@@ -223,7 +223,7 @@ struct ArgumentList {
var arguments: String[] var arguments: String[]
init(argv: UnsafePointer<CString>, init(argv: UnsafePointer<CString>,
count: CInt) count: CInt)
{ {
foo foo
} }
@@ -249,9 +249,9 @@ func simpleDescription() -> String {
let library = [ let library = [
Movie(name: "foo bar", Movie(name: "foo bar",
dfasdfsdfdirector: "someone", dfasdfsdfdirector: "someone",
foo: "bar", foo: "bar",
bazzzer: "qux") bazzzer: "qux")
] ]
@@ -266,7 +266,9 @@ class MainViewController: UIViewController, UITableViewDataSource {}
@IBAction func changePostFilter(sender: UISegmentedControl) {} @IBAction func changePostFilter(sender: UISegmentedControl) {}
override func prepareForSegue(segue: UIStoryboardSegue, override func prepareForSegue(segue: UIStoryboardSegue,
sender: AnyObject) {} sender: AnyObject) {}
override func prepareForSegue(
segue: UIStoryboardSegue, sender: AnyObject) {}
override func prepareForSegue(segue: UIStoryboardSegue!, sender: AnyObject!) {} override func prepareForSegue(segue: UIStoryboardSegue!, sender: AnyObject!) {}
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) {} override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) {}
lazy var foo : String lazy var foo : String
@@ -293,7 +295,7 @@ func foo () {
} }
let foo = CGRectMake(0, (5 - 2), let foo = CGRectMake(0, (5 - 2),
100, 200) 100, 200)
let dict = [ let dict = [
@@ -351,10 +353,10 @@ let data = NSData(contentsOfFile: path) else
} }
UIView.animateWithDuration(duration, delay: 0, usingSpringWithDamping: 0.8, initialSpringVelocity: 0, options: .CurveEaseInOut, animations: { UIView.animateWithDuration(duration, delay: 0, usingSpringWithDamping: 0.8, initialSpringVelocity: 0, options: .CurveEaseInOut, animations: {
view.backgroundColor = UIColor.redColor() view.backgroundColor = UIColor.redColor()
}) { finished in }, completion: { finished in
print("indent?") print("indent?")
} })
// Indent last line should hold // Indent last line should hold
self.init(className: "Item", dictionary: [ self.init(className: "Item", dictionary: [
@@ -374,3 +376,16 @@ NSWorkspace.sharedWorkspace().notificationCenter.addObserver(
public func find(closure: @noescape Element throws -> Bool) rethrows -> Element? { public func find(closure: @noescape Element throws -> Bool) rethrows -> Element? {
} }
UIView.animate(withDuration: 0.2, animations: {
self.foo.alpha = 1.0
self.bar.alpha = 1.0
}, completion: { _ in
completion()
})
A.b().application(
application, didFinishLaunchingWithOptions: launchOptions)
A.application(b(),
application, didFinishLaunchingWithOptions: launchOptions)