October 2019
Intermediate to advanced
434 pages
11h 54m
English
In this previous section, we shared a single, simple class that exposed a platform-specific string. This demonstrated how we can leverage the expect and actual modifiers, but the overall example was quite simple. In this section, let's look at a slightly more interesting example of how we can architect common code and consume it across the different projects we've created.
For this, we perform the following steps:
data class ViewState(val title: String, val subtitle: String)
ViewState will simply hold two strings: a title ...
Read now
Unlock full access