December 2019
Intermediate to advanced
248 pages
5h 34m
English
Scenic is an Elixir library that builds native user interfaces. Like Channels and LiveView for Phoenix, Scenic is an OTP callback-based library. A Scenic Scene is a GenServer process which creates and manages a Graph that gets drawn to the screen. You can possibly already see where this is going. This is how it all works:
At initialization, a scene creates a Graph module, one with the buttons, text, and other features that make up a user interface.
Events from the user interface come into scenes as GenServer messages, which can change the graphs or other custom state.
Event callbacks can optionally render the scene.
The initialization is like the start link; the events are GenServer callbacks; and the render ...
Read now
Unlock full access