You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for the great package.
All the value pass through the attributes will convert to Optional string.
To fix this you may change the code for both iOS and MacOS on :
SwiftBonsoirPlugin.swift
From :
for (key, value) in attributes {
if (value != nil) {
result[key] = String(describing: value).data(using: .utf8)
}
}
To:
for (key, value) in attributes {
if let value = value {
result[key] = value.data(using: .utf8)
}
}
SuccessObject.swift
From :
for (key, value) in attributes {
if(value != nil) {
result[key] = String(decoding: value!, as: UTF8.self)
}
}
To :
for (key, value) in attributes {
if let value = value {
result[key] = String(decoding: value, as: UTF8.self)
}
}
The text was updated successfully, but these errors were encountered:
First of all, thanks for the great package.
All the value pass through the attributes will convert to Optional string.
To fix this you may change the code for both iOS and MacOS on :
SwiftBonsoirPlugin.swift
From :
for (key, value) in attributes {
if (value != nil) {
result[key] = String(describing: value).data(using: .utf8)
}
}
To:
for (key, value) in attributes {
if let value = value {
result[key] = value.data(using: .utf8)
}
}
SuccessObject.swift
From :
for (key, value) in attributes {
if(value != nil) {
result[key] = String(decoding: value!, as: UTF8.self)
}
}
To :
for (key, value) in attributes {
if let value = value {
result[key] = String(decoding: value, as: UTF8.self)
}
}
The text was updated successfully, but these errors were encountered: