Skip to content

Commit

Permalink
Initializer needs to be public
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Pospesel authored and mpospese committed Mar 17, 2023
1 parent 92a0398 commit 90fa200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/YMatterType/Typography/Typography+Enums.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90fa200

Please sign in to comment.