secant-ios-wallet/modules/Sources/UIComponents/Text/ConditionalStrikethrough.swift

20 lines
320 B
Swift

//
// ConditionalStrikethrough.swift
//
//
// Created by Lukáš Korba on 08.11.2023.
//
import SwiftUI
extension Text {
public func conditionalStrikethrough(_ on: Bool) -> Text {
if on {
return self
.strikethrough()
} else {
return self
}
}
}