This commit adds an automated UI test to check if the edit banner button UI is clickable and not hidden behind a top bar or another invisible element. It also improves accessibility support for some elements on login and top bar. Changelog-Changed: Improved accessibility support on some elements Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
32 lines
630 B
Swift
32 lines
630 B
Swift
//
|
|
// DamusBackground.swift
|
|
// damus
|
|
//
|
|
// Created by William Casarin on 2023-07-12.
|
|
//
|
|
|
|
import Foundation
|
|
import SwiftUI
|
|
|
|
struct DamusBackground: View {
|
|
let maxHeight: CGFloat
|
|
|
|
init(maxHeight: CGFloat = 250.0) {
|
|
self.maxHeight = maxHeight
|
|
}
|
|
|
|
var body: some View {
|
|
Image("login-header")
|
|
.resizable()
|
|
.frame(maxWidth: .infinity, maxHeight: maxHeight, alignment: .center)
|
|
.ignoresSafeArea()
|
|
.accessibilityHidden(true)
|
|
}
|
|
}
|
|
|
|
struct DamusBackground_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
DamusBackground()
|
|
}
|
|
}
|