-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebfb6e7
commit 77da483
Showing
5 changed files
with
54 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// UIViewController+Nameable.swift | ||
// Sucrose | ||
// | ||
// Created by Pedro Carrasco on 08/03/2019. | ||
// Copyright © 2019 Pedro Carrasco. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UIViewController: Nameable { } |
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,20 @@ | ||
// | ||
// Nameable.swift | ||
// Sucrose | ||
// | ||
// Created by Pedro Carrasco on 08/03/2019. | ||
// Copyright © 2019 Pedro Carrasco. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public protocol Nameable { | ||
static var name: String { get } | ||
} | ||
|
||
extension Nameable { | ||
|
||
public static var name: String { | ||
return String(describing: self) | ||
} | ||
} |