We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f0477f commit d3d7f84Copy full SHA for d3d7f84
1 file changed
AndroidSwiftUICore/Tests/AndroidSwiftUICoreTests/EvaluatorTests.swift
@@ -227,6 +227,12 @@ struct ModifierTests {
227
let node = ViewHost(Text("x").shadow(radius: 6)).evaluate()
228
#expect(node.modifiers.first { $0.kind == "shadow" }?.args["radius"] == .double(6))
229
}
230
+
231
+ @Test("tint emits its color")
232
+ func tint() {
233
+ let node = ViewHost(Text("x").tint(.green)).evaluate()
234
+ #expect(node.modifiers.first { $0.kind == "tint" }?.args["color"] == Color.green.propValue)
235
+ }
236
237
238
// MARK: - Graphics
0 commit comments