Skip to content

Commit e8c59cd

Browse files
committed
Declaring option set options as public.
1 parent 494c1a1 commit e8c59cd

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

Sources/FilestackSDK/Public/Enums/MetadataOptions.swift

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,58 +11,58 @@ import Foundation
1111
/// Represents a metadata option.
1212
public struct MetadataOptions: OptionSet {
1313
/// Size
14-
static let size = MetadataOptions(rawValue: 1 << 0)
14+
public static let size = MetadataOptions(rawValue: 1 << 0)
1515

1616
/// MIME Type
17-
static let mimeType = MetadataOptions(rawValue: 1 << 1)
17+
public static let mimeType = MetadataOptions(rawValue: 1 << 1)
1818

1919
/// Filename
20-
static let fileName = MetadataOptions(rawValue: 1 << 2)
20+
public static let fileName = MetadataOptions(rawValue: 1 << 2)
2121

2222
/// Width
23-
static let width = MetadataOptions(rawValue: 1 << 3)
23+
public static let width = MetadataOptions(rawValue: 1 << 3)
2424

2525
/// Height
26-
static let height = MetadataOptions(rawValue: 1 << 4)
26+
public static let height = MetadataOptions(rawValue: 1 << 4)
2727

2828
/// Uploaded
29-
static let uploaded = MetadataOptions(rawValue: 1 << 5)
29+
public static let uploaded = MetadataOptions(rawValue: 1 << 5)
3030

3131
/// Writeable
32-
static let writeable = MetadataOptions(rawValue: 1 << 6)
32+
public static let writeable = MetadataOptions(rawValue: 1 << 6)
3333

3434
/// Cloud
35-
static let cloud = MetadataOptions(rawValue: 1 << 7)
35+
public static let cloud = MetadataOptions(rawValue: 1 << 7)
3636

3737
/// Source URL
38-
static let sourceURL = MetadataOptions(rawValue: 1 << 8)
38+
public static let sourceURL = MetadataOptions(rawValue: 1 << 8)
3939

4040
/// MD5
41-
static let MD5 = MetadataOptions(rawValue: 1 << 9)
41+
public static let MD5 = MetadataOptions(rawValue: 1 << 9)
4242

4343
/// SHA224
44-
static let SHA224 = MetadataOptions(rawValue: 1 << 10)
44+
public static let SHA224 = MetadataOptions(rawValue: 1 << 10)
4545

4646
/// SHA256
47-
static let SHA256 = MetadataOptions(rawValue: 1 << 11)
47+
public static let SHA256 = MetadataOptions(rawValue: 1 << 11)
4848

4949
/// SHA384
50-
static let SHA384 = MetadataOptions(rawValue: 1 << 12)
50+
public static let SHA384 = MetadataOptions(rawValue: 1 << 12)
5151

5252
/// SHA512
53-
static let SHA512 = MetadataOptions(rawValue: 1 << 13)
53+
public static let SHA512 = MetadataOptions(rawValue: 1 << 13)
5454

5555
/// Location
56-
static let location = MetadataOptions(rawValue: 1 << 14)
56+
public static let location = MetadataOptions(rawValue: 1 << 14)
5757

5858
/// Path
59-
static let path = MetadataOptions(rawValue: 1 << 15)
59+
public static let path = MetadataOptions(rawValue: 1 << 15)
6060

6161
/// Container
62-
static let container = MetadataOptions(rawValue: 1 << 16)
62+
public static let container = MetadataOptions(rawValue: 1 << 16)
6363

6464
/// Exif
65-
static let exif = MetadataOptions(rawValue: 1 << 17)
65+
public static let exif = MetadataOptions(rawValue: 1 << 17)
6666

6767
public let rawValue: Int
6868

Sources/FilestackSDK/Public/Enums/PolicyCall.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,34 @@ import Foundation
1414
/// information about policy calls.
1515
public struct PolicyCall: OptionSet {
1616
/// Allows users to upload files.
17-
static let pick = PolicyCall(rawValue: 1 << 0)
17+
public static let pick = PolicyCall(rawValue: 1 << 0)
1818

1919
/// Allows files to be viewed/accessed.
20-
static let read = PolicyCall(rawValue: 1 << 1)
20+
public static let read = PolicyCall(rawValue: 1 << 1)
2121

2222
/// Allows metadata about files to be retrieved.
23-
static let stat = PolicyCall(rawValue: 1 << 2)
23+
public static let stat = PolicyCall(rawValue: 1 << 2)
2424

2525
/// Allows use of the write function.
26-
static let write = PolicyCall(rawValue: 1 << 3)
26+
public static let write = PolicyCall(rawValue: 1 << 3)
2727

2828
/// Allows use of the writeUrl function.
29-
static let writeURL = PolicyCall(rawValue: 1 << 4)
29+
public static let writeURL = PolicyCall(rawValue: 1 << 4)
3030

3131
/// Allows files to be written to custom storage.
32-
static let store = PolicyCall(rawValue: 1 << 5)
32+
public static let store = PolicyCall(rawValue: 1 << 5)
3333

3434
/// Allows transformation (crop, resize, rotate) of files, also needed for the viewer.
35-
static let convert = PolicyCall(rawValue: 1 << 6)
35+
public static let convert = PolicyCall(rawValue: 1 << 6)
3636

3737
/// Allows removal of Filestack files.
38-
static let remove = PolicyCall(rawValue: 1 << 7)
38+
public static let remove = PolicyCall(rawValue: 1 << 7)
3939

4040
/// Allows exif metadata to be accessed.
41-
static let exif = PolicyCall(rawValue: 1 << 8)
41+
public static let exif = PolicyCall(rawValue: 1 << 8)
4242

4343
/// Allows workflows to be run.
44-
static let runWorkflow = PolicyCall(rawValue: 1 << 9)
44+
public static let runWorkflow = PolicyCall(rawValue: 1 << 9)
4545

4646
public let rawValue: Int
4747

Sources/FilestackSDK/Public/Enums/TransformPosition.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ import UIKit
1212
/// Represents an image transform position type.
1313
public struct TransformPosition: OptionSet {
1414
/// Top
15-
static let top = TransformPosition(rawValue: 1 << 0)
15+
public static let top = TransformPosition(rawValue: 1 << 0)
1616

1717
/// Middle
18-
static let middle = TransformPosition(rawValue: 1 << 1)
18+
public static let middle = TransformPosition(rawValue: 1 << 1)
1919

2020
/// Bottom
21-
static let bottom = TransformPosition(rawValue: 1 << 2)
21+
public static let bottom = TransformPosition(rawValue: 1 << 2)
2222

2323
/// Left
24-
static let left = TransformPosition(rawValue: 1 << 3)
24+
public static let left = TransformPosition(rawValue: 1 << 3)
2525

2626
/// Center
27-
static let center = TransformPosition(rawValue: 1 << 4)
27+
public static let center = TransformPosition(rawValue: 1 << 4)
2828

2929
/// Right
30-
static let right = TransformPosition(rawValue: 1 << 5)
30+
public static let right = TransformPosition(rawValue: 1 << 5)
3131

3232
public let rawValue: Int
3333

0 commit comments

Comments
 (0)