Skip to content

Commit c08a3e3

Browse files
authored
Add public initializer to Profile (#3050)
It is expected that clients have to construct `Profile` objects themselves, so there should be a public initializer.
1 parent 6fd2b0b commit c08a3e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/PackageCollections/Model/Profile.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,9 @@ extension PackageCollectionsModel {
1616

1717
/// Profile name
1818
public let name: String
19+
20+
public init(name: String) {
21+
self.name = name
22+
}
1923
}
2024
}

0 commit comments

Comments
 (0)