From 8ed501d379881ed969da7839b68be361b1b6bc74 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Sun, 4 Sep 2022 22:35:16 -0700 Subject: [PATCH] Clean up share channel view a bit --- Meshtastic/Views/Settings/ShareChannel.swift | 21 ++++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Meshtastic/Views/Settings/ShareChannel.swift b/Meshtastic/Views/Settings/ShareChannel.swift index a1d15e26..b9e0ae82 100644 --- a/Meshtastic/Views/Settings/ShareChannel.swift +++ b/Meshtastic/Views/Settings/ShareChannel.swift @@ -68,20 +68,19 @@ struct ShareChannel: View { maxHeight: smallest * 0.8, alignment: .center ) - Spacer() + + if node?.loRaConfig != nil { + + HStack { + + let preset = ModemPresets(rawValue: Int(node!.loRaConfig!.modemPreset)) + Text("Modem Preset \(preset!.description)").font(.title3) + } + } HStack { - let preset = ModemPresets(rawValue: Int(node!.loRaConfig!.modemPreset)) - - Text("Modem Preset \(preset!.description)").font(.title) + Text("Number of Channels: \(node!.myInfo!.maxChannels)").font(.title2) } - Spacer() - HStack { - - Text("Number of Channels").font(.title) - Text(String(node!.myInfo!.maxChannels)).font(.title) - } - Spacer() } .frame(width: bounds.size.width, height: bounds.size.height) }