Skip to content

Commit b52a960

Browse files
SFSymbols v7
1 parent a0e9f7d commit b52a960

File tree

12 files changed

+9115
-13213
lines changed

12 files changed

+9115
-13213
lines changed

Sources/SFSymbols/SFSymbol/SFSymbol+Image.swift

Lines changed: 789 additions & 0 deletions
Large diffs are not rendered by default.

Sources/SFSymbols/SFSymbol/SFSymbol+Name.swift

Lines changed: 789 additions & 0 deletions
Large diffs are not rendered by default.

Sources/SFSymbols/SFSymbol/SFSymbol+Version7.swift

Lines changed: 410 additions & 0 deletions
Large diffs are not rendered by default.

Sources/SFSymbols/SFSymbol/SFSymbol.swift

Lines changed: 2371 additions & 2 deletions
Large diffs are not rendered by default.

Tests/SFSymbolsTests/SFSymbolsTests.swift

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,26 @@ final class SFSymbolsTests: XCTestCase {
6868
}
6969
}
7070

71+
@available(iOS 26, *)
72+
@available(macOS 26, *)
73+
func testV7Valid() throws {
74+
if #unavailable(macOS 26, iOS 26) {
75+
print("Not Testing Version 6 Symbols. System does not support them.")
76+
return
77+
}
78+
for symbol in SFSymbol.sfSymbolsV7 {
79+
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
80+
let image = NSImage(systemSymbolName: symbol.name, accessibilityDescription: nil)
81+
#elseif canImport(UIKit)
82+
let image = UIImage(systemName: symbol.name)
83+
#endif
84+
85+
if image == nil {
86+
print("Invalid \(symbol.name)")
87+
}
88+
89+
XCTAssertNotNil(image)
90+
}
91+
}
92+
7193
}

0 commit comments

Comments
 (0)