From 90fa2008d52ea210c13ac5c6df4e165b9802caca Mon Sep 17 00:00:00 2001 From: Mark Pospesel Date: Fri, 17 Mar 2023 18:24:19 +0100 Subject: [PATCH] Initializer needs to be public --- Sources/YMatterType/Typography/Typography+Enums.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/YMatterType/Typography/Typography+Enums.swift b/Sources/YMatterType/Typography/Typography+Enums.swift index 059d804..bd1f5fd 100644 --- a/Sources/YMatterType/Typography/Typography+Enums.swift +++ b/Sources/YMatterType/Typography/Typography+Enums.swift @@ -42,7 +42,7 @@ extension Typography { /// This will be useful for converting Figma tokens to `Typography` objects. /// Common synonyms will be accepted, e.g. both "SemiBold" and "DemiBold" map to `.semibold`. /// - Parameter weightName: the case-insensitive weight name, e.g. "Bold" - init?(_ weightName: String) { + public init?(_ weightName: String) { switch weightName.lowercased(with: Locale(identifier: "en_US")) { case "ultralight", "extralight": self = .ultralight