Skip to content

Commit

Permalink
Show Auto-Lock only when passcode is set
Browse files Browse the repository at this point in the history
  • Loading branch information
ealymbaev committed Oct 3, 2023
1 parent b9c154d commit c02ad83
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,16 @@ struct SecuritySettingsView: View {
}
}

ListSection {
NavigationRow(destination: {
AutoLockView(period: $viewModel.autoLockPeriod)
}) {
Image("lock_24").themeIcon()
Text("settings_security.auto_lock".localized).themeBody()
Text(viewModel.autoLockPeriod.title).themeSubhead1(alignment: .trailing).padding(.trailing, -.margin8)
Image.disclosureIcon
if viewModel.isPasscodeSet {
ListSection {
NavigationRow(destination: {
AutoLockView(period: $viewModel.autoLockPeriod)
}) {
Image("lock_24").themeIcon()
Text("settings_security.auto_lock".localized).themeBody()
Text(viewModel.autoLockPeriod.title).themeSubhead1(alignment: .trailing).padding(.trailing, -.margin8)
Image.disclosureIcon
}
}
}

Expand Down

0 comments on commit c02ad83

Please sign in to comment.