Skip to content

Commit

Permalink
fix: Cleaner warning message describing SF Symbols restrictions (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmorley authored Jan 22, 2023
1 parent d066f6c commit c6b610c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Symbolic/Models/Library.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 3 additions & 5 deletions Symbolic/Views/LibraryInfoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

}
Expand Down

0 comments on commit c6b610c

Please sign in to comment.