joshaber / Few.swift

Views as functions of their state.
MIT License
1.08k stars 39 forks source link

Simpler Component, better layout #72

Closed joshaber closed 9 years ago

joshaber commented 9 years ago

This started as an attempt at making layout more holistic, but it also has the nice benefit of making Component much simpler.

ghost commented 9 years ago

Looks good, this makes Component a lot simpler. I also thought about moving the rendering outside Component inside something like a RootView. Because then we maybe can switch to something like a protocol for Components or Elements.

joshaber commented 9 years ago

I also thought about moving the rendering outside Component inside something like a RootView. Because then we maybe can switch to something like a protocol for Components or Elements.

Yup, I'd love to do that. I thought about heading that road in this PR but decided the scope was already too big :see_no_evil:

joshaber commented 9 years ago

I also ended up burning down ScrollView because it's pretty superfluous with TableView existing.

joshaber commented 9 years ago