Adds the monster name to MonsterDetail.

This commit is contained in:
2021-04-04 00:31:18 -07:00
parent 68a6051dca
commit 46682e1de7

View File

@@ -80,6 +80,11 @@ struct BasicInfoView: View {
let monsterHitPoints = monster.hitPoints
let monsterSpeed = monster.speed
if (!monster.name.isEmpty) {
Text(monster.name)
.font(.largeTitle)
}
// meta: "(large humanoid (elf) lawful evil"
if (!monsterMeta.isEmpty) {
Text(monsterMeta)