From d15dbe18ef1ab8a495f8dced439404222ec0472c Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 2 Jul 2020 05:36:23 -0500 Subject: [PATCH] Change AppDefaults to be final classes on macOS and iOS --- Mac/AppDefaults.swift | 2 +- iOS/AppDefaults.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Mac/AppDefaults.swift b/Mac/AppDefaults.swift index 9d9d9f884..278a53525 100644 --- a/Mac/AppDefaults.swift +++ b/Mac/AppDefaults.swift @@ -14,7 +14,7 @@ enum FontSize: Int { case veryLarge = 3 } -struct AppDefaults { +final class AppDefaults { static var shared = AppDefaults() private init() {} diff --git a/iOS/AppDefaults.swift b/iOS/AppDefaults.swift index 9f6c757f4..a9ad904d0 100644 --- a/iOS/AppDefaults.swift +++ b/iOS/AppDefaults.swift @@ -26,7 +26,7 @@ enum UserInterfaceColorPalette: Int, CustomStringConvertible, CaseIterable { } -class AppDefaults { +final class AppDefaults { static let shared = AppDefaults() private init() {}