Skip to content

Commit d76f3a9

Browse files
committed
Update example
1 parent 7b83a9b commit d76f3a9

File tree

1 file changed

+25
-10
lines changed

1 file changed

+25
-10
lines changed

example/example.swift

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ struct ArgumentList {
223223
var arguments: String[]
224224

225225
init(argv: UnsafePointer<CString>,
226-
count: CInt)
226+
count: CInt)
227227
{
228228
foo
229229
}
@@ -249,9 +249,9 @@ func simpleDescription() -> String {
249249

250250
let library = [
251251
Movie(name: "foo bar",
252-
dfasdfsdfdirector: "someone",
253-
foo: "bar",
254-
bazzzer: "qux")
252+
dfasdfsdfdirector: "someone",
253+
foo: "bar",
254+
bazzzer: "qux")
255255
]
256256

257257

@@ -266,7 +266,9 @@ class MainViewController: UIViewController, UITableViewDataSource {}
266266

267267
@IBAction func changePostFilter(sender: UISegmentedControl) {}
268268
override func prepareForSegue(segue: UIStoryboardSegue,
269-
sender: AnyObject) {}
269+
sender: AnyObject) {}
270+
override func prepareForSegue(
271+
segue: UIStoryboardSegue, sender: AnyObject) {}
270272
override func prepareForSegue(segue: UIStoryboardSegue!, sender: AnyObject!) {}
271273
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) {}
272274
lazy var foo : String
@@ -293,7 +295,7 @@ func foo () {
293295
}
294296

295297
let foo = CGRectMake(0, (5 - 2),
296-
100, 200)
298+
100, 200)
297299

298300

299301
let dict = [
@@ -351,10 +353,10 @@ let data = NSData(contentsOfFile: path) else
351353
}
352354

353355
UIView.animateWithDuration(duration, delay: 0, usingSpringWithDamping: 0.8, initialSpringVelocity: 0, options: .CurveEaseInOut, animations: {
354-
view.backgroundColor = UIColor.redColor()
355-
}) { finished in
356-
print("indent?")
357-
}
356+
view.backgroundColor = UIColor.redColor()
357+
}, completion: { finished in
358+
print("indent?")
359+
})
358360

359361
// Indent last line should hold
360362
self.init(className: "Item", dictionary: [
@@ -374,3 +376,16 @@ NSWorkspace.sharedWorkspace().notificationCenter.addObserver(
374376
public func find(closure: @noescape Element throws -> Bool) rethrows -> Element? {
375377

376378
}
379+
380+
UIView.animate(withDuration: 0.2, animations: {
381+
self.foo.alpha = 1.0
382+
self.bar.alpha = 1.0
383+
}, completion: { _ in
384+
completion()
385+
})
386+
387+
A.b().application(
388+
application, didFinishLaunchingWithOptions: launchOptions)
389+
390+
A.application(b(),
391+
application, didFinishLaunchingWithOptions: launchOptions)

0 commit comments

Comments
 (0)