Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* GH-21 Meetup 5 Improve Todo Cell UI: - Added completion date property to Item Model - Added an icon for complete and incomplete state. - Added label to display completed date - Setup labels layout to vertical when dynamic type size is large. - Removed autoresizing masks form xibs - Cleaned up code and added pragma marks * GH-21 * GH-20 Meetup5 Empty state (#25) * GH-21 Changes: - Moved TableView to child VC. - Handled Keyboard - Added Empty state - Fixed textField placeholder Dynamic Type support - Added Extensions to add and remove child VC's, add subview with fill constraints - Made Navbar opaque. * GH-20 Empty state improvements
- Loading branch information
Showing
17 changed files
with
538 additions
and
115 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,27 @@ | ||
import UIKit | ||
|
||
extension UIViewController { | ||
|
||
/// Adds a subview to the calling `UIViewControler` and constrains it to the edges | ||
/// | ||
/// - Parameter subview: view to add as subview and constraint. | ||
/// - Parameter margin: Optional margin inset to all of the edges of the subview. Defaults to 0. | ||
func addSubViewWithFillConstraints(_ subview: UIView, margin: CGFloat = 0) { | ||
view.addSubViewWithFillConstraints(subview, margin: margin) | ||
} | ||
|
||
func add(_ child: UIViewController) { | ||
child.view.translatesAutoresizingMaskIntoConstraints = false | ||
addChildViewController(child) | ||
view.addSubview(child.view) | ||
child.didMove(toParentViewController: self) | ||
} | ||
|
||
func remove() { | ||
guard parent != nil else { return } | ||
|
||
willMove(toParentViewController: nil) | ||
removeFromParentViewController() | ||
view.removeFromSuperview() | ||
} | ||
} |
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
16 changes: 16 additions & 0 deletions
16
TodoList/Resources/Assets.xcassets/completedIcon.imageset/Contents.json
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,16 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "completedIcon.pdf" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
}, | ||
"properties" : { | ||
"template-rendering-intent" : "template", | ||
"preserves-vector-representation" : true | ||
} | ||
} |
Binary file added
BIN
+3.98 KB
TodoList/Resources/Assets.xcassets/completedIcon.imageset/completedIcon.pdf
Binary file not shown.
16 changes: 16 additions & 0 deletions
16
TodoList/Resources/Assets.xcassets/todoIcon.imageset/Contents.json
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,16 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "todoIcon.pdf" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
}, | ||
"properties" : { | ||
"template-rendering-intent" : "template", | ||
"preserves-vector-representation" : true | ||
} | ||
} |
Binary file not shown.
Oops, something went wrong.