The ShapeStyle where Self == Color extension duplicated Color statics, causing 'ambiguous use' errors in foregroundStyle/stroke/tint/background contexts. Removed the extension entirely and use explicit Color.xxx prefix at all call sites instead.
14 lines
391 B
Swift
14 lines
391 B
Swift
import SwiftUI
|
|
|
|
/// Orange DEV banner overlay (matches Android's DevBanner)
|
|
struct DevBanner: View {
|
|
var body: some View {
|
|
Text("DEV")
|
|
.font(.caption2.bold())
|
|
.foregroundStyle(.white)
|
|
.padding(.horizontal, 12)
|
|
.padding(.vertical, 4)
|
|
.background(Color.warningOrange, in: Capsule())
|
|
.padding(.top, 4)
|
|
}
|
|
}
|