ios: disable current user profile button

This commit is contained in:
Evgeny Poberezkin 2023-01-27 12:54:42 +00:00
parent bd158f3b0d
commit 6e131e0bad
2 changed files with 2 additions and 1 deletions

View file

@ -113,6 +113,7 @@ struct UserPicker: View {
.padding(.trailing)
.padding([.leading, .vertical], 12)
})
.disabled(user.activeUser)
.buttonStyle(PressedButtonStyle(defaultColor: fillColor, pressedColor: Color(uiColor: .secondarySystemFill)))
}

View file

@ -102,7 +102,7 @@ struct UserProfilesView: View {
}
}
@ViewBuilder private func userView(_ user: User) -> some View {
private func userView(_ user: User) -> some View {
Button {
changeActiveUser(user.userId)
} label: {