Mercurial > public > simoleon
view Simoleon/Helpers/ConditionalWrapper.swift @ 152:2584fd74235a
Add new currencies
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 23 Aug 2021 17:14:14 +0100 |
parents | 75c1a05176f6 |
children |
line wrap: on
line source
// // ConditionalWrapper.swift // Simoleon // // Created by Dennis Concepción Martín on 19/07/2021. // import SwiftUI extension View { @ViewBuilder func `if`<Content: View>(_ conditional: Bool, content: (Self) -> Content) -> some View { if conditional { content(self) } else { self } } }