Skip to content

Commit ce7beaa

Browse files
committed
Merge branch 'development' of https://github.com/MessageKit/MessageKit into development
2 parents b0c9cf3 + 90f3e36 commit ce7beaa

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa
88

99
## [[Prerelease] 1.0.0-beta.2](https://github.com/MessageKit/MessageKit/releases/tag/1.0.0-beta.2)
1010

11+
### Changed
12+
13+
- Relaxed the settable requirement for the `LocationItem` and `MediaItem` protocols.
14+
[#727](https://github.com/MessageKit/MessageKit/pull/716) by [@SD10](https://github.com/sd10).
15+
1116
### Fixed
1217

1318
- Fixed `MessageContentCell`'s subviews `frame` when size equal to `.zero`.

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)