next step
This commit is contained in:
@@ -32,6 +32,11 @@ extension CaseIterable where Self: Equatable {
|
||||
}
|
||||
}
|
||||
|
||||
extension EnvironmentValues {
|
||||
@Entry var dieColorSelected: Color = .brown
|
||||
@Entry var dieColorPrimary: Color = .cyan
|
||||
}
|
||||
|
||||
extension View {
|
||||
func disabledWithOpacity(_ condition: Bool) -> some View {
|
||||
self.disabled(condition).opacity(condition ? 0.4 : 1.0)
|
||||
|
||||
Reference in New Issue
Block a user