Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F13831354
Preferences.swift
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
586 B
Subscribers
None
Preferences.swift
View Options
import
SwiftUI
struct
Preferences
:
View
{
@
State
private
var
appearance
:
Int
=
0
var
body
:
some
View
{
Form
{
Picker
(
selection
:
$
appearance
,
label
:
Text
(
"Appearance"
))
{
Text
(
"System"
).
tag
(
0
)
Text
(
"Light Mode"
).
tag
(
1
)
Text
(
"Dark Mode"
).
tag
(
2
)
}
.
frame
(
width
:
200
,
height
:
100
,
alignment
:
.
topLeading
)
.
pickerStyle
(
RadioGroupPickerStyle
())
}
}
}
struct
SwiftUIView_Previews
:
PreviewProvider
{
static
var
previews
:
some
View
{
Preferences
()
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Feb 20, 8:32 AM (18 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3633896
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment