Skip to content

Commit 6696e48

Browse files
authored
fix(core): Swift warning for null invoke.resolve() iOS plugin values (#10842)
`Any` does allow `nil`, but must be explicitly set to avoid the Swift warning
1 parent c55474f commit 6696e48

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch:bug
3+
---
4+
5+
Fixes a warning when using a null value on the `invoke.resolve()` iOS plugin API.

crates/tauri/mobile/ios-api/Sources/Tauri/JsonValue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import Foundation
66

7-
public typealias JsonObject = [String: Any]
7+
public typealias JsonObject = [String: Any?]
88

99
public enum JsonValue {
1010
case dictionary(JsonObject)

0 commit comments

Comments
 (0)