Skip to content

Commit f18144c

Browse files
committed
Fix issue with non-public initialiser
1 parent 8e7c46e commit f18144c

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Sources/SwiftAstro/StarCatalog/StarName.swift

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,32 @@ extension SwiftAstro {
3434
public let dateApproved: String
3535
public let hrNumber: Int?
3636
public let hdNumber: Int?
37+
38+
public init(
39+
name: String,
40+
designations: [Designation],
41+
bayerGreek: String?,
42+
constellation: String,
43+
magnitude: Double,
44+
band: Band,
45+
rightAscension: Double,
46+
declination: Double,
47+
dateApproved: String,
48+
hrNumber: Int?,
49+
hdNumber: Int?
50+
) {
51+
self.name = name
52+
self.designations = designations
53+
self.bayerGreek = bayerGreek
54+
self.constellation = constellation
55+
self.magnitude = magnitude
56+
self.band = band
57+
self.rightAscension = rightAscension
58+
self.declination = declination
59+
self.dateApproved = dateApproved
60+
self.hrNumber = hrNumber
61+
self.hdNumber = hdNumber
62+
}
3763
}
3864

3965
}

0 commit comments

Comments
 (0)