This file contains hidden or 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
| protocol TableViewFooter:class { | |
| var footerActivityIndicator:UIActivityIndicatorView! {get set} | |
| var tableView:UITableView! {get set} | |
| func setupTableViewFooter() | |
| } | |
| extension TableViewFooter { | |
| func setupTableViewFooter() { |
This file contains hidden or 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
| let replaced = String(challengeName.characters.flatMap { | |
| $0 == "#" ? nil : $0 | |
| }) |
This file contains hidden or 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
| protocol NavigationBarTitleViewMixin { | |
| func showAppLogoInTitleView() | |
| } | |
| extension NavigationBarTitleViewMixin where Self:UIViewController { | |
| func showAppLogoInTitleView() { | |
| let logoView = UIImageView(image: UIImage(named:"navbar_brand")) | |
| self.navigationController!.navigationBar.setTitleVerticalPositionAdjustment(-6.0, forBarMetrics: .Default) |
NewerOlder