Skip to content

Commit fae7303

Browse files
authored
Make the struct in the default template public (#3454)
This makes it easier to use it from clients which makes for a better default experience. rdar://77110377
1 parent 957707b commit fae7303

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Sources/Workspace/InitPackage.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,11 @@ public final class InitPackage {
291291
switch packageType {
292292
case .library:
293293
content = """
294-
struct \(typeName) {
295-
var text = "Hello, World!"
294+
public struct \(typeName) {
295+
public private(set) var text = "Hello, World!"
296+
297+
public init() {
298+
}
296299
}
297300
298301
"""

0 commit comments

Comments
 (0)