Files
5d4f42cc65 feat(mobile): iOS improve push notification display when app is in background (#5951)
* feat(mobile): display proper push notification on ios when app in background

* fix(mobile): add a postinstall step and remove dist folder

* Update expo-plugins/notification-service-ios/README.md

Co-authored-by: Usame Algan <[email protected]>

---------

Co-authored-by: Usame Algan <[email protected]>
2025-06-05 08:15:23 +02:00

41 lines
908 B
Swift

//
// BoolString.swift
// Multisig
//
// Created by Dmitry Bespalov on 26.07.21.
// Copyright © 2021 Gnosis Ltd. All rights reserved.
//
import Foundation
struct BoolString: Hashable, Codable {
var value: Bool
init(_ value: Bool) {
self.value = value
}
init(from decoder: Decoder) throws {
let container = try decoder.singleValueContainer()
let string = try container.decode(String.self)
value = string == "true"
}
func encode(to encoder: Encoder) throws {
var container = encoder.singleValueContainer()
try container.encode(value ? "true" : "false")
}
}
extension BoolString: ExpressibleByStringLiteral {
init(stringLiteral value: StringLiteralType) {
self.init(value == "true")
}
}
extension BoolString: CustomStringConvertible {
var description: String {
String(describing: value)
}
}