mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-27 01:52:30 +01:00
22 lines
306 B
Swift
22 lines
306 B
Swift
|
//
|
||
|
// HiddenModifier.swift
|
||
|
// NetNewsWire
|
||
|
//
|
||
|
// Created by Maurice Parker on 7/12/20.
|
||
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import SwiftUI
|
||
|
|
||
|
extension View {
|
||
|
func hidden(_ hide: Bool) -> some View {
|
||
|
Group {
|
||
|
if hide {
|
||
|
self.hidden()
|
||
|
} else {
|
||
|
self
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|