Skip to content

Instantly share code, notes, and snippets.

View MMP0's full-sized avatar

MMP0

  • Tokyo-to, Japan
  • 12:28 (UTC +09:00)
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.