Skip to content

Commit ebc52ab

Browse files
committed
Make PropertyListSerialization.MutabilityOptions constants public
These are meant to be public so that they can be passed when reading a plist. Previously they were accessible on macOS, but not Linux.
1 parent 489984c commit ebc52ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Foundation/PropertyListSerialization.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ extension PropertyListSerialization {
2121
public let rawValue : UInt
2222
public init(rawValue: UInt) { self.rawValue = rawValue }
2323

24-
static let mutableContainers = MutabilityOptions(rawValue: 1)
25-
static let mutableContainersAndLeaves = MutabilityOptions(rawValue: 2)
24+
public static let mutableContainers = MutabilityOptions(rawValue: 1)
25+
public static let mutableContainersAndLeaves = MutabilityOptions(rawValue: 2)
2626
}
2727

2828
public enum PropertyListFormat : UInt {

0 commit comments

Comments
 (0)