SettingsSheet.swift (650B)
1 // 2 // SettingsSheet.swift 3 // txtodo (iOS) 4 // 5 // Created by FIGBERT on 8/6/20. 6 // 7 8 import SwiftUI 9 10 struct SettingsSheet: View { 11 @StateObject var storeManager: StoreManager 12 13 var body: some View { 14 VStack { 15 Text("settings") 16 .underline() 17 .padding() 18 Form { 19 NotificationSection() 20 DonationSection(storeManager: storeManager) 21 } 22 .listStyle(GroupedListStyle()) 23 } 24 } 25 } 26 27 struct SettingsSheet_Previews: PreviewProvider { 28 static var previews: some View { 29 SettingsSheet(storeManager: StoreManager()) 30 } 31 }