This repository has been archived by the owner on Aug 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87b7513
commit 3dd507f
Showing
16 changed files
with
95 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,58 +21,64 @@ struct ArtAthleteSettings : View { | |
|
||
var body: some View { | ||
VStack { | ||
HStack { | ||
Text("Settings")//.font(.title) | ||
.bold() | ||
.foregroundColor(Color("ColorAccentWhite")) | ||
.background(Color("ColorGrayTwo")) | ||
.cornerRadius(2) | ||
.font(.subheadline) | ||
// .alignmentGuide(.center, computeValue: { _ in 90 } ) | ||
Button("Done") { | ||
prefs.showSettings = false | ||
}.alignmentGuide(.trailing, computeValue: { _ in 90 } ) | ||
|
||
// Button(action: { | ||
// self.locationManager.requestAlwaysAuthorization() | ||
// // self.locationManager.requestWhenInUseAuthorization() | ||
// }) { | ||
// Text("Request authorization") | ||
// } | ||
ZStack { | ||
HStack{ | ||
Spacer() | ||
Text("Settings")//.font(.title) | ||
.font(.title3) | ||
Spacer() | ||
} | ||
HStack { | ||
Spacer() | ||
Button("Done") { | ||
prefs.showSettings = false | ||
}.padding(.trailing, 10).foregroundColor(.blue)//.alignmentGuide(.trailing, computeValue: { _ in 90 } ) | ||
} | ||
} | ||
|
||
toggleSwitch() | ||
|
||
Spacer() | ||
} | ||
// Spacer() | ||
|
||
|
||
Form { | ||
Section(header: Text("Notifications")) { | ||
Picker("Notify Me About", selection: $notifyMeAbout) { | ||
Text("Direct Messages")//.tag(NotifyMeAboutType.directMessages) | ||
Text("Mentions")//.tag(NotifyMeAboutType.mentions) | ||
Text("Anything")//.tag(NotifyMeAboutType.anything) | ||
} | ||
Toggle("Play notification sounds", isOn: $playNotificationSounds) | ||
Toggle("Send read receipts", isOn: $sendReadReceipts) | ||
|
||
Section() { | ||
Toggle("Show Timer", isOn: $playNotificationSounds) | ||
Toggle("Show Session Options", isOn: $sendReadReceipts) | ||
toggleSwitch() | ||
|
||
} | ||
Section(header: Text("User Profiles")) { | ||
Picker("Profile Image Size", selection: $profileImageSize) { | ||
Text("Large")//.tag(ProfileImageSize.large) | ||
Text("Medium")//.tag(ProfileImageSize.medium) | ||
Text("Small")//.tag(ProfileImageSize.small) | ||
} | ||
|
||
Section(header: Text("Reset")) { | ||
// Picker("Profile Image Size", selection: $profileImageSize) { | ||
// Text("Large")//.tag(ProfileImageSize.large) | ||
// Text("Medium")//.tag(ProfileImageSize.medium) | ||
// Text("Small")//.tag(ProfileImageSize.small) | ||
// } | ||
Button { | ||
deleteFilesInDirectory() | ||
} label: { | ||
HStack { | ||
Image(systemName: "trash.circle") | ||
Text("Delete All Photos") | ||
} | ||
} | ||
|
||
Button { | ||
//deleteFilesInDirectory() | ||
} label: { | ||
HStack { | ||
Image(systemName: "0.circle.fill") | ||
Text("Reset All User Stats") | ||
} | ||
} | ||
Text("Files").font(.title3) | ||
|
||
//Text("Please email me with any bugs or features you'd like to see added :)") | ||
Text("Support: [email protected]") | ||
} | ||
|
||
} | ||
|
||
} | ||
} | ||
//End view | ||
|
@@ -96,6 +102,9 @@ struct ArtAthleteSettings : View { | |
print("JD451: THIS WORKS, but it does NOT delete the document directory. Just everything inside of it. ••••••\n", error) | ||
} | ||
|
||
let documentsFolder = try Folder(path: "/users/john/folder") | ||
|
||
|
||
print("JD451: Files in Documents -->", FileManager.default.urls(for: .documentDirectory) ?? "none") //Extension upgraded this to show directory folders. | ||
// return path | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters