File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff 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 ` .
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ import class CoreLocation.CLLocation
2828public 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}
Original file line number Diff line number Diff line change @@ -28,15 +28,15 @@ import Foundation
2828public 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}
You can’t perform that action at this time.
0 commit comments