mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 16:20:53 +01:00
47d12f4fe7
Reduces article count on display when using larger text sizes
27 lines
680 B
Swift
27 lines
680 B
Swift
//
|
|
// SizeCategories.swift
|
|
// NetNewsWire iOS Widget Extension
|
|
//
|
|
// Created by Stuart Breckenridge on 24/12/2020.
|
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct SizeCategories {
|
|
|
|
let largeSizeCategories: [ContentSizeCategory] = [.extraExtraLarge,
|
|
.extraExtraExtraLarge,
|
|
.accessibilityMedium,
|
|
.accessibilityLarge,
|
|
.accessibilityExtraLarge,
|
|
.accessibilityExtraExtraLarge,
|
|
.accessibilityExtraExtraExtraLarge]
|
|
|
|
|
|
func isSizeCategoryLarge(category: ContentSizeCategory) -> Bool {
|
|
largeSizeCategories.filter{ $0 == category }.count == 1
|
|
}
|
|
|
|
}
|