We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aad3b24 commit 328426dCopy full SHA for 328426d
1 file changed
Tests/CoreDataRepositoryTests/UUID+Uniform.swift
@@ -0,0 +1,19 @@
1
+// UUID+Uniform.swift
2
+// CoreDataRepository
3
+//
4
5
+// MIT License
6
7
+// Copyright © 2023 Andrew Roan
8
+
9
+import Foundation
10
11
+extension UUID {
12
+ /// BA7097EA-70FD-4595-9268-6D415A222C7B
13
+ init(uniform character: Character) {
14
+ let x8 = String(repeating: character, count: 8)
15
+ let x4 = String(repeating: character, count: 4)
16
+ let x12 = String(repeating: character, count: 12)
17
+ self.init(uuidString: "\(x8)-\(x4)-\(x4)-\(x4)-\(x12)")!
18
+ }
19
+}
0 commit comments