mirror of
https://github.com/bolucat/Archive.git
synced 2026-04-23 00:17:16 +08:00
13 lines
234 B
Swift
13 lines
234 B
Swift
import Foundation
|
|
import SwiftUI
|
|
|
|
public extension Bool {
|
|
func toString() -> String {
|
|
if self {
|
|
return String(localized: "true")
|
|
} else {
|
|
return String(localized: "false")
|
|
}
|
|
}
|
|
}
|