chore(ios): consolidate optional argument standard (#1738)

* chore(ios): consolidate optional argument standard

mark all optional iOS arguments as `var <name>: Type?`, following the pattern described in the documentation: https://v2.tauri.app/develop/plugins/develop-mobile/#ios

* chore: add missing Info.plist to example
This commit is contained in:
Lucas Fernandes Nogueira
2024-09-10 08:31:39 -03:00
committed by GitHub
parent 713c54ef83
commit a34fade500
9 changed files with 68 additions and 60 deletions
+11 -11
View File
@@ -16,24 +16,24 @@ enum ScanKind: Decodable {
struct ScanOptions: Decodable {
let kind: ScanKind
let keepSessionAlive: Bool?
let message: String?
let successMessage: String?
var keepSessionAlive: Bool?
var message: String?
var successMessage: String?
}
struct NDEFRecord: Decodable {
let format: UInt8?
let kind: [UInt8]?
let identifier: [UInt8]?
let payload: [UInt8]?
var format: UInt8?
var kind: [UInt8]?
var identifier: [UInt8]?
var payload: [UInt8]?
}
struct WriteOptions: Decodable {
let kind: ScanKind?
var kind: ScanKind?
let records: [NDEFRecord]
let message: String?
let successMessage: String?
let successfulReadMessage: String?
var message: String?
var successMessage: String?
var successfulReadMessage: String?
}
enum TagProcessMode {