mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 08:09:41 +01:00
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
|
||
|
}
|
||
|
|
||
|
}
|