mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Make timeline filter maintain it state for each timeline individually
This commit is contained in:
21
Multiplatform/Shared/SwiftUI Extensions/HiddenModifier.swift
Normal file
21
Multiplatform/Shared/SwiftUI Extensions/HiddenModifier.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user