Mercurial > public > simoleon
view Simoleon/Helpers/ConditionalWrapper.swift @ 166:e4cbb1eea394
Implement FavoritesView
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sat, 11 Sep 2021 16:30:32 +0200 |
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 } } }