Skip to content

Commit ca11764

Browse files
committed
Relax protocol requirements for get/set
1 parent 528ed1a commit ca11764

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Sources/Protocols/LocationItem.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ import class CoreLocation.CLLocation
2828
public protocol LocationItem {
2929

3030
/// The location.
31-
var location: CLLocation { get set }
31+
var location: CLLocation { get }
3232

3333
/// The size of the location item.
34-
var size: CGSize { get set }
34+
var size: CGSize { get }
3535

3636
}

Sources/Protocols/MediaItem.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ import Foundation
2828
public protocol MediaItem {
2929

3030
/// The url where the media is located.
31-
var url: URL? { get set }
31+
var url: URL? { get }
3232

3333
/// The image.
34-
var image: UIImage? { get set }
34+
var image: UIImage? { get }
3535

3636
/// A placeholder image for when the image is obtained asychronously.
37-
var placeholderImage: UIImage { get set }
37+
var placeholderImage: UIImage { get }
3838

3939
/// The size of the media item.
40-
var size: CGSize { get set }
40+
var size: CGSize { get }
4141

4242
}

0 commit comments

Comments
 (0)