-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a bug preventing the detail view controller to manage its view inside the card.
- Loading branch information
1 parent
e2f88d1
commit e98350b
Showing
9 changed files
with
79 additions
and
20 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
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,37 @@ | ||
// | ||
// DetailViewController.swift | ||
// Demo | ||
// | ||
// Created by Paolo Cuscela on 03/11/17. | ||
// Copyright © 2017 Paolo Cuscela. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
class CardContentViewController: UIViewController { | ||
|
||
|
||
let colors = [ | ||
|
||
UIColor.red, | ||
UIColor.yellow, | ||
UIColor.blue, | ||
UIColor.green, | ||
UIColor.brown, | ||
UIColor.purple, | ||
UIColor.orange | ||
|
||
] | ||
|
||
override func viewDidLoad() { | ||
print("Loaded!") | ||
} | ||
|
||
@IBAction func doMagic(_ sender: Any) { | ||
|
||
view.backgroundColor = colors[Int(arc4random_uniform(UInt32(colors.count)))] | ||
|
||
|
||
} | ||
|
||
} |
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
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