Skip to content

Commit 5dbed7e

Browse files
authored
Follow up for #1195 (#1506)
Move the new options out of `#if !FOUNDATION_FRAMEWORK` block
1 parent 8fb7db4 commit 5dbed7e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Sources/FoundationEssentials/Data/Data.swift

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2888,13 +2888,6 @@ extension Data {
28882888
/// When a maximum line length is set, specify that the line ending to insert should include a line feed.
28892889
public static let endLineWithLineFeed = Base64EncodingOptions(rawValue: 1 << 5)
28902890

2891-
/// Use the base64url alphabet to encode the data
2892-
@available(FoundationPreview 6.3, *)
2893-
public static let base64URLAlphabet = Base64EncodingOptions(rawValue: 1 << 6)
2894-
2895-
/// Omit the `=` padding characters in the end of the base64 encoded result
2896-
@available(FoundationPreview 6.3, *)
2897-
public static let omitPaddingCharacter = Base64EncodingOptions(rawValue: 1 << 7)
28982891
}
28992892

29002893
@available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
@@ -2918,6 +2911,15 @@ extension Data {
29182911
}
29192912
#endif //!FOUNDATION_FRAMEWORK
29202913

2914+
extension Data.Base64EncodingOptions {
2915+
/// Use the base64url alphabet to encode the data
2916+
@available(FoundationPreview 6.3, *)
2917+
public static let base64URLAlphabet = Self(rawValue: 1 << 6)
2918+
2919+
/// Omit the `=` padding characters in the end of the base64 encoded result
2920+
@available(FoundationPreview 6.3, *)
2921+
public static let omitPaddingCharacter = Self(rawValue: 1 << 7)
2922+
}
29212923

29222924
@available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
29232925
extension Data : CustomStringConvertible, CustomDebugStringConvertible, CustomReflectable {

0 commit comments

Comments
 (0)