Skip to content

Commit 7d37a9b

Browse files
authored
Merge pull request #5 from lukepistrol/main
added `breakpoint` & `breakpoint.fill` symbol
2 parents 4a98615 + 618019e commit 7d37a9b

File tree

10 files changed

+394
-0
lines changed

10 files changed

+394
-0
lines changed

Sources/CodeEditSymbols/CodeEditSymbols.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public extension Image {
2020
static let vault_fill: Image = .init(symbol: "vault.fill")
2121
static let commit: Image = .init(symbol: "commit")
2222
static let checkout: Image = .init(symbol: "checkout")
23+
static let breakpoint: Image = .init(symbol: "breakpoint")
24+
static let breakpoint_fill: Image = .init(symbol: "breakpoint.fill")
2325

2426
// add static properties for your symbols above this line
2527

@@ -41,6 +43,8 @@ public extension NSImage {
4143
static let vault_fill: NSImage = .symbol(named: "vault.fill")
4244
static let commit: NSImage = .symbol(named: "commit")
4345
static let checkout: NSImage = .symbol(named: "checkout")
46+
static let breakpoint: NSImage = .symbol(named: "breakpoint")
47+
static let breakpoint_fill: NSImage = .symbol(named: "breakpoint.fill")
4448

4549
// add static properties for your symbols above this line
4650

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
},
6+
"symbols" : [
7+
{
8+
"filename" : "breakpoint.fill.svg",
9+
"idiom" : "universal"
10+
}
11+
]
12+
}

Sources/CodeEditSymbols/Symbols.xcassets/breakpoint.fill.symbolset/breakpoint.fill.svg

Lines changed: 167 additions & 0 deletions
Loading
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
},
6+
"symbols" : [
7+
{
8+
"filename" : "breakpoint.svg",
9+
"idiom" : "universal"
10+
}
11+
]
12+
}

Sources/CodeEditSymbols/Symbols.xcassets/breakpoint.symbolset/breakpoint.svg

Lines changed: 167 additions & 0 deletions
Loading

Tests/CodeEditSymbolsTests/CodeEditSymbolsTests.swift

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,22 @@ final class CodeEditSymbolsTests: XCTestCase {
4343
assertSnapshot(matching: view, as: .image, record: record)
4444
}
4545

46+
// MARK: BREAKPOINT
47+
48+
func testCreateNSImageBreakpoint() {
49+
let image = NSImage.breakpoint
50+
let view = NSImageView(image: image)
51+
view.appearance = .init(named: .aqua)
52+
assertSnapshot(matching: view, as: .image, record: record)
53+
}
54+
55+
func testCreateNSImageBreakpointFill() {
56+
let image = NSImage.breakpoint_fill
57+
let view = NSImageView(image: image)
58+
view.appearance = .init(named: .aqua)
59+
assertSnapshot(matching: view, as: .image, record: record)
60+
}
61+
4662
// MARK: - Image Tests
4763

4864
// MARK: VAULT
@@ -78,4 +94,20 @@ final class CodeEditSymbolsTests: XCTestCase {
7894
view.appearance = .init(named: .aqua)
7995
assertSnapshot(matching: view, as: .image(size: view.intrinsicContentSize), record: record)
8096
}
97+
98+
// MARK: BREAKPOINT
99+
100+
func testCreateImageBreakpoint() {
101+
let image = Image.breakpoint
102+
let view: NSView = NSHostingController(rootView: image).view
103+
view.appearance = .init(named: .aqua)
104+
assertSnapshot(matching: view, as: .image(size: view.intrinsicContentSize), record: record)
105+
}
106+
107+
func testCreateImageBreakpointFill() {
108+
let image = Image.breakpoint_fill
109+
let view: NSView = NSHostingController(rootView: image).view
110+
view.appearance = .init(named: .aqua)
111+
assertSnapshot(matching: view, as: .image(size: view.intrinsicContentSize), record: record)
112+
}
81113
}
1.74 KB
Loading
1.6 KB
Loading
1.62 KB
Loading
1.5 KB
Loading

0 commit comments

Comments
 (0)