Skip to content

Commit

Permalink
Add parameter setting to sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Dec 17, 2024
1 parent 5da9db4 commit 4008400
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@ class LoginSettingsViewController: UITableViewController {
case .none: p.botPromptStyle = .aggressive
}
}
),
ParameterItem(
title: "Initial Auth Method",
text: { p in
switch p.initialWebAuthenticationMethod {
case .email: return "Email"
case .qrCode: return "QR Code"
}
}, action: { p in
switch p.initialWebAuthenticationMethod {
case .email: p.initialWebAuthenticationMethod = .qrCode
case .qrCode: p.initialWebAuthenticationMethod = .email
}
}
)
]

Expand Down Expand Up @@ -137,6 +151,7 @@ class LoginSettingsViewController: UITableViewController {
let p = parameters[indexPath.row]
cell.textLabel?.text = p.title
cell.detailTextLabel?.text = p.text(loginSettings.parameters)
cell.accessoryType = .none
}

return cell
Expand Down

0 comments on commit 4008400

Please sign in to comment.