-
-
Save Pasanpr/467154e7b337bccd31d9e936a1bbeda7 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
struct StringDataProvider: DataProvider { | |
let data = ["someValue", "anotherValue"] | |
func object(atIndex index: Int) -> String { | |
return data[index] | |
} | |
} | |
struct IntView: ConfigurableView { | |
func configure(with data: Int) { | |
// | |
} | |
} | |
struct StringView: ConfigurableView { | |
func configure(with data: String) { | |
// | |
} | |
} | |
let controller = ViewController(view: IntView(), data: StringDataProvider()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment