Skip to content

Instantly share code, notes, and snippets.

View theLastOrbit's full-sized avatar
🍎
Swift | iOS | macOS

MD RUBEL theLastOrbit

🍎
Swift | iOS | macOS
View GitHub Profile
@MMP0
MMP0 / View+SizeCategory.swift
Last active July 27, 2024 15:55
SwiftUI dynamicTypeSize modifier for iOS 14, macOS 11, tvOS 14 and watchOS 7 or earlier
//
// View+SizeCategory.swift
//
// Created by MMP0 on 2022/02/06.
//
import SwiftUI
public extension View {
/// Sets the Dynamic Type size within the view to the given value.