Tuesday, November 26, 2019

Declarative UI: SwiftUI, Jetpack Compose, Flutter

Declarative UI in the middle of a Whirlwind - Bram Yeh - Medium

Introduction to declarative UI - Flutter

View B (contained by view A) morphs from containing two views, c1 and c2, to containing only view c3

// Imperative style
b.setColor(red)
b.clearChildren()
ViewC c3 = new ViewC(...)
b.add(c3)
// Declarative style
return ViewB(
  color: red,
  child: ViewC(...),
)

Jetpack Compose  |  Android Developers

Xcode - SwiftUI - Apple Developer


SwiftUI vs. Jetpack Compose - QuickBird Studios Blog

No comments: