mirror of
https://github.com/yattee/yattee.git
synced 2025-10-13 02:48:27 +00:00
Refactor hide shorts
This commit is contained in:
@@ -66,10 +66,6 @@ private struct ScrollViewBottomPaddingKey: EnvironmentKey {
|
||||
static let defaultValue: Double = 30
|
||||
}
|
||||
|
||||
private struct HideShortsKey: EnvironmentKey {
|
||||
static let defaultValue = false
|
||||
}
|
||||
|
||||
extension EnvironmentValues {
|
||||
var inChannelView: Bool {
|
||||
get { self[InChannelViewKey.self] }
|
||||
@@ -125,9 +121,4 @@ extension EnvironmentValues {
|
||||
get { self[NoListingDividersKey.self] }
|
||||
set { self[NoListingDividersKey.self] = newValue }
|
||||
}
|
||||
|
||||
var hideShorts: Bool {
|
||||
get { self[HideShortsKey.self] }
|
||||
set { self[HideShortsKey.self] = newValue }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user