From c6b610c6a268c56e00e708ddede31b6319b90b89 Mon Sep 17 00:00:00 2001 From: Jason Morley Date: Sun, 22 Jan 2023 06:30:48 +0000 Subject: [PATCH] fix: Cleaner warning message describing SF Symbols restrictions (#150) --- Symbolic/Models/Library.swift | 2 +- Symbolic/Views/LibraryInfoView.swift | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Symbolic/Models/Library.swift b/Symbolic/Models/Library.swift index a7e5aa6c64..3e0f8972ba 100644 --- a/Symbolic/Models/Library.swift +++ b/Symbolic/Models/Library.swift @@ -63,7 +63,7 @@ struct Library { license: License(name: "Agreements and Guidelines", fileURL: nil, url: URL(string: "https://developer.apple.com/support/terms/")!), - warning: "SF Symbols are licensed under a non-permissive license and are prohibited from use as icons.") + warning: "Apple sets out specific guidelines defining acceptable use of SF Symbols and explicitly prohibits their use in icons.\n\nEnsure you only use exported files containing SF Symbols in ways permitted under the relevant terms and conditions.") }() init(id: String, diff --git a/Symbolic/Views/LibraryInfoView.swift b/Symbolic/Views/LibraryInfoView.swift index 86d870621b..0f74335aea 100644 --- a/Symbolic/Views/LibraryInfoView.swift +++ b/Symbolic/Views/LibraryInfoView.swift @@ -54,11 +54,9 @@ struct LibraryInfoView: View { } if let warning = library.warning { - HStack { - Image(systemName: "exclamationmark.triangle.fill") - .symbolRenderingMode(.multicolor) - Text(warning) - } + Text(warning) + .multilineTextAlignment(.center) + .padding() } }