Reducing visual noise in Electrum Server configuration screen.
@@ -62,12 +62,7 @@ struct NewLayout: View {
List {
- Section(header: Text("Info")) {
- Text(
- "By default Phoenix connects to random Electrum servers in order to access the" +
- " Bitcoin blockchain. You can also choose to connect to your own Electrum server."
- )
- }
+ Section(header: ListHeader(), content: {}).textCase(nil)
Section(header: Text("Configuration")) {
@@ -164,6 +159,20 @@ struct NewLayout: View {
}
}
+ struct ListHeader: View {
+
+ var body: some View {
+
+ Text(
+ "By default Phoenix connects to random Electrum servers in order to access the" +
+ " Bitcoin blockchain. You can also choose to connect to your own Electrum server."
+ )
+ .font(.body)
+ .foregroundColor(Color.primary)
+ .padding(.top, 10)
+ }
+ }
+
struct ListItem<Content>: View where Content: View {
let header: Text
