* ios: User chooser UI * Change * Changes * update view * fix layout/refactor * fix preview * wider menu, update label * hide Your profiles button * Clickable background that hides userChooser * No click listener * Better animation * Disabled scrolling for small number of items * Separated scrollview and buttons * No transition * Re-indent * Limiting width by the longest label * UserManagerView * Adapted API * Hide user chooser after selection * Top counter, users refactor * Padding * use VStack to fix layout bug * eol * rename: rename to getUserChatData * update layout * s/semibold/medium * remove SettingsButton view * rename Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
16 lines
393 B
Swift
16 lines
393 B
Swift
//
|
|
// Created by Avently on 16.01.2023.
|
|
// Copyright (c) 2023 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct PressedButtonStyle: ButtonStyle {
|
|
var defaultColor: Color
|
|
var pressedColor: Color
|
|
func makeBody(configuration: Self.Configuration) -> some View {
|
|
configuration.label
|
|
.background(configuration.isPressed ? pressedColor : defaultColor)
|
|
}
|
|
}
|