|
|
@@ -2,19 +2,26 @@ import SwiftUI
|
|
|
|
|
|
struct YourContentHeader: View {
|
|
|
var body: some View {
|
|
|
- Image("YourContentLogo")
|
|
|
- .resizable()
|
|
|
- .aspectRatio(contentMode: .fit)
|
|
|
- .frame(height: AppTheme.yourContentLogoHeight, alignment: .topLeading)
|
|
|
- .frame(maxWidth: .infinity, alignment: .leading)
|
|
|
- .accessibilityLabel("Your Content")
|
|
|
+ HStack(spacing: 10) {
|
|
|
+ Image(systemName: "wand.and.stars")
|
|
|
+ .font(.system(size: 18, weight: .semibold))
|
|
|
+ .foregroundStyle(AppTheme.teal)
|
|
|
+ .accessibilityHidden(true)
|
|
|
+
|
|
|
+ Text("Your Content")
|
|
|
+ .font(.system(size: 18, weight: .bold))
|
|
|
+ .foregroundStyle(AppTheme.textPrimary)
|
|
|
+ }
|
|
|
+ .frame(maxWidth: .infinity, alignment: .leading)
|
|
|
+ .accessibilityElement(children: .combine)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
extension View {
|
|
|
func inputContentCardPadding() -> some View {
|
|
|
padding(.top, AppTheme.contentCardTopPadding)
|
|
|
- .padding(.horizontal, AppTheme.contentCardPadding)
|
|
|
- .padding(.bottom, AppTheme.contentCardPadding)
|
|
|
+ .padding(.leading, AppTheme.contentCardLeadingPadding)
|
|
|
+ .padding(.bottom, AppTheme.contentCardBottomPadding)
|
|
|
+ .padding(.trailing, AppTheme.contentCardPadding)
|
|
|
}
|
|
|
}
|