Created
May 5, 2020 03:17
-
-
Save TungVuDuc2805/204c8c3a0580f60fe34a8e5f89d9db9e to your computer and use it in GitHub Desktop.
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
let wifiLoader = WifiLoader(url: URL(string: http://api.com/wifi/posts)!) | |
let cellularLoader = CellularLoader(url: URL(string: http://api.com/wifi/cellular)!) | |
let localLoader = LocalLoader() | |
let compositeLoader = CompositeStrategy(wifiLoader: wifiLoader, cellularLoader: cellularLoader, localLoader: localLoader) | |
let viewController = PostViewController(loader: compositeLoader) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment