Skip to content

Commit 37fcb35

Browse files
authored
Make URLResourceValues private properties internal (#1116)
1 parent bbe96fc commit 37fcb35

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/FoundationEssentials/URL/URL.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ internal import CoreFoundation_Private.CFURL
2929
@available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
3030
public struct URLResourceValues {
3131

32-
fileprivate var _values: [URLResourceKey: Any]
33-
fileprivate var _keys: Set<URLResourceKey>
32+
var _values: [URLResourceKey: Any]
33+
var _keys: Set<URLResourceKey>
3434

3535
public init() {
3636
_values = [:]
@@ -49,19 +49,19 @@ public struct URLResourceValues {
4949
_keys = Set(values.keys)
5050
}
5151

52-
private func contains(_ key: URLResourceKey) -> Bool {
52+
func contains(_ key: URLResourceKey) -> Bool {
5353
return _keys.contains(key)
5454
}
5555

56-
private func _get<T>(_ key: URLResourceKey) -> T? {
56+
func _get<T>(_ key: URLResourceKey) -> T? {
5757
return _values[key] as? T
5858
}
5959

60-
private func _get(_ key: URLResourceKey) -> Bool? {
60+
func _get(_ key: URLResourceKey) -> Bool? {
6161
return (_values[key] as? NSNumber)?.boolValue
6262
}
6363

64-
private func _get(_ key: URLResourceKey) -> Int? {
64+
func _get(_ key: URLResourceKey) -> Int? {
6565
return (_values[key] as? NSNumber)?.intValue
6666
}
6767

0 commit comments

Comments
 (0)