Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@TungVuDuc2805
Created May 5, 2020 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TungVuDuc2805/204c8c3a0580f60fe34a8e5f89d9db9e to your computer and use it in GitHub Desktop.
Save TungVuDuc2805/204c8c3a0580f60fe34a8e5f89d9db9e to your computer and use it in GitHub Desktop.
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