mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
Merge branch 'development' of https://github.com/MessageKit/MessageKit into development
This commit is contained in:
@@ -8,6 +8,11 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa
|
||||
|
||||
## [[Prerelease] 1.0.0-beta.2](https://github.com/MessageKit/MessageKit/releases/tag/1.0.0-beta.2)
|
||||
|
||||
### Changed
|
||||
|
||||
- Relaxed the settable requirement for the `LocationItem` and `MediaItem` protocols.
|
||||
[#727](https://github.com/MessageKit/MessageKit/pull/716) by [@SD10](https://github.com/sd10).
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed `MessageContentCell`'s subviews `frame` when size equal to `.zero`.
|
||||
|
||||
@@ -28,9 +28,9 @@ import class CoreLocation.CLLocation
|
||||
public protocol LocationItem {
|
||||
|
||||
/// The location.
|
||||
var location: CLLocation { get set }
|
||||
var location: CLLocation { get }
|
||||
|
||||
/// The size of the location item.
|
||||
var size: CGSize { get set }
|
||||
var size: CGSize { get }
|
||||
|
||||
}
|
||||
|
||||
@@ -28,15 +28,15 @@ import Foundation
|
||||
public protocol MediaItem {
|
||||
|
||||
/// The url where the media is located.
|
||||
var url: URL? { get set }
|
||||
var url: URL? { get }
|
||||
|
||||
/// The image.
|
||||
var image: UIImage? { get set }
|
||||
var image: UIImage? { get }
|
||||
|
||||
/// A placeholder image for when the image is obtained asychronously.
|
||||
var placeholderImage: UIImage { get set }
|
||||
var placeholderImage: UIImage { get }
|
||||
|
||||
/// The size of the media item.
|
||||
var size: CGSize { get set }
|
||||
var size: CGSize { get }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user