Last active
August 17, 2021 12:29
-
-
Save IhwanID/ab7b36f9f544ae049a08b690007d73a1 to your computer and use it in GitHub Desktop.
Intro to Dependency Diagrams and Composition
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
import UIKit | |
class FeedViewController: UIViewController{ | |
var loadFeed: ((([String]) -> Void) -> Void)! | |
convenience init(loadFeed: @escaping (([String]) -> Void) -> Void){ | |
self.init() | |
self.loadFeed = loadFeed | |
} | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
loadFeed{ item in | |
} | |
} | |
} |
Author
IhwanID
commented
Aug 17, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment