mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
097d055dbe
* Add a plain list modifier to Compound. * Move ElementTextFieldStyle into Compound and support more styles from the Figma - More accurately reflects our Liquid Glass updates. - Adds support for the .raised style. * Update Element X snapshots.
28 lines
671 B
Swift
28 lines
671 B
Swift
//
|
|
// Copyright 2025 Element Creations Ltd.
|
|
// Copyright 2023-2025 New Vector Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
|
// Please see LICENSE files in the repository root for full details.
|
|
//
|
|
|
|
import Compound
|
|
import SwiftUI
|
|
|
|
struct TextFieldsScreen: View {
|
|
var body: some View {
|
|
ScreenContent(navigationTitle: "Text Fields") {
|
|
CompoundTextFieldStyle_Previews.states
|
|
}
|
|
}
|
|
}
|
|
|
|
struct TextFieldsScreen_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
NavigationStack {
|
|
TextFieldsScreen()
|
|
}
|
|
.previewLayout(.fixed(width: 375, height: 700))
|
|
}
|
|
}
|