@@ -44,12 +44,12 @@ public struct DefaultAvailability: Codable, Equatable {
44
44
/// A string representation of the version for this platform.
45
45
public var platformVersion : String
46
46
47
- /// Create a new module availability with a given platform name and platform version.
47
+ /// Creates a new module availability with a given platform name and platform version.
48
48
///
49
49
/// - Parameters:
50
50
/// - platformName: A platform name, such as "iOS" or "macOS"; see ``PlatformName``.
51
51
/// - platformVersion: A 2- or 3-component version string, such as `"13.0"` or `"13.1.2"`
52
- init ( platformName: PlatformName , platformVersion: String ) {
52
+ public init ( platformName: PlatformName , platformVersion: String ) {
53
53
self . platformName = platformName
54
54
self . platformVersion = platformVersion
55
55
}
@@ -70,7 +70,9 @@ public struct DefaultAvailability: Codable, Equatable {
70
70
/// For example: "ModuleName" -> ["macOS 10.15", "iOS 13.0"]
71
71
var modules : [ String : [ ModuleAvailability ] ]
72
72
73
- init ( with modules: [ String : [ ModuleAvailability ] ] ) {
73
+ /// Creates a default availability module.
74
+ /// - Parameter modules: A map of modules and the default platform availability for symbols in that module.
75
+ public init ( with modules: [ String : [ ModuleAvailability ] ] ) {
74
76
self . modules = modules. mapValues { platformAvailabilities -> [ DefaultAvailability . ModuleAvailability ] in
75
77
// If a module doesn't contain default introduced availability for macCatalyst,
76
78
// infer it from iOS. Their platform versions are always the same.
0 commit comments