Reformat code (IOS-168)
This commit is contained in:
parent
4b89d6eef0
commit
6701586287
|
@ -48,17 +48,29 @@ struct PrivacySafetyView: View {
|
|||
} else {
|
||||
Form {
|
||||
Section(L10n.Scene.Settings.PrivacySafety.Preset.title) {
|
||||
CheckableButton(text: L10n.Scene.Settings.PrivacySafety.Preset.openAndPublic, isChecked: viewModel.preset == .openPublic, action: {
|
||||
CheckableButton(
|
||||
text: L10n.Scene.Settings.PrivacySafety.Preset.openAndPublic,
|
||||
isChecked: viewModel.preset == .openPublic,
|
||||
action: {
|
||||
viewModel.preset = .openPublic
|
||||
})
|
||||
CheckableButton(text: L10n.Scene.Settings.PrivacySafety.Preset.privateAndRestricted, isChecked: viewModel.preset == .privateRestricted, action: {
|
||||
}
|
||||
)
|
||||
CheckableButton(
|
||||
text: L10n.Scene.Settings.PrivacySafety.Preset.privateAndRestricted,
|
||||
isChecked: viewModel.preset == .privateRestricted,
|
||||
action: {
|
||||
viewModel.preset = .privateRestricted
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
if viewModel.preset == .custom {
|
||||
CheckableButton(text: L10n.Scene.Settings.PrivacySafety.Preset.custom, isChecked: viewModel.preset == .custom, action: {
|
||||
CheckableButton(
|
||||
text: L10n.Scene.Settings.PrivacySafety.Preset.custom,
|
||||
isChecked: viewModel.preset == .custom,
|
||||
action: {
|
||||
viewModel.preset = .custom
|
||||
})
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue