mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
SP4: space settings (#5730)
* SP4: Space Settings - Space settings screen implemented - No space upgrade available as per Element web - Need more insights for the space address field - Added settings live update - Added local alias implementation
This commit is contained in:
@@ -16,6 +16,20 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
extension ThemableTextField {
|
||||
func showClearButton(text: Binding<String>, alignement: VerticalAlignment = .center) -> some View {
|
||||
return modifier(ClearViewModifier(alignment: alignement, text: text))
|
||||
}
|
||||
}
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
extension ThemableTextEditor {
|
||||
func showClearButton(text: Binding<String>, alignement: VerticalAlignment = .top) -> some View {
|
||||
return modifier(ClearViewModifier(alignment: alignement, text: text))
|
||||
}
|
||||
}
|
||||
|
||||
/// `ClearViewModifier` aims to add a clear button (e.g. `x` button) on the right side of any text editing view
|
||||
@available(iOS 14.0, *)
|
||||
struct ClearViewModifier: ViewModifier
|
||||
|
||||
Reference in New Issue
Block a user