A Data Model structure for displaying UI Screens
Screen {
id: String?
title: String
backgroundColor: Color
headerView: SomeView?
view: SomeView
footerView: SomeView?
}
{
"title": "Uh oh!",
"backgroundColor": {
"red": 1,
"alpha": 1,
"blue": 1,
"green": 1
},
"someView": {
"type": "label",
"someLabel": {
"title": "\/\/ TODO: This",
"font": "largeTitle",
"style": {
"foregroundColor": {
"red": 0,
"alpha": 1,
"blue": 0,
"green": 0
},
"isHidden": false,
"cornerRadius": 0,
"padding": 0
}
}
}
}