Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10700712
SettingsView.swift
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
SettingsView.swift
View Options
import
SwiftUI
struct
SettingsView
:
View
{
@
EnvironmentObject
var
model
:
WriteFreelyModel
var
body
:
some
View
{
VStack
{
SettingsHeaderView
()
Form
{
Section
(
header
:
Text
(
"Login Details"
))
{
AccountView
()
}
Section
(
header
:
Text
(
"Appearance"
))
{
PreferencesView
(
preferences
:
model
.
preferences
)
}
Section
(
header
:
Text
(
"External Links"
))
{
HStack
{
Spacer
()
Link
(
"View the Guide"
,
destination
:
model
.
howToURL
)
Spacer
()
}
HStack
{
Spacer
()
Link
(
"Visit the Help Forum"
,
destination
:
model
.
helpURL
)
Spacer
()
}
HStack
{
Spacer
()
Link
(
"Write a Review on the App Store"
,
destination
:
model
.
reviewURL
)
Spacer
()
}
}
Section
(
header
:
Text
(
"Acknowledgements"
))
{
VStack
{
VStack
(
alignment
:
.
leading
)
{
Text
(
"This application makes use of the following open-source projects:"
)
.
padding
(.
bottom
)
Text
(
"• Lora typeface"
)
.
padding
(.
leading
)
Text
(
"• Open Sans typeface"
)
.
padding
(.
leading
)
Text
(
"• Hack typeface"
)
.
padding
(.
leading
)
}
.
padding
(.
bottom
)
.
foregroundColor
(.
secondary
)
HStack
{
Spacer
()
Link
(
"View the licenses"
,
destination
:
model
.
licensesURL
)
Spacer
()
}
}
.
padding
()
}
}
}
// .preferredColorScheme(preferences.selectedColorScheme) // See PreferencesModel for info.
}
}
struct
SettingsView_Previews
:
PreviewProvider
{
static
var
previews
:
some
View
{
SettingsView
()
.
environmentObject
(
WriteFreelyModel
())
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Jun 7, 12:35 AM (12 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3258522
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment