Update CHANGELOG & availability

This commit is contained in:
Steven Deutsch
2017-09-22 01:15:27 -05:00
parent b56dccc912
commit 62abb03455
3 changed files with 58 additions and 14 deletions
+29
View File
@@ -7,6 +7,35 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa
## Upcoming release
----------------
## [Prerelease] 0.8.0
### Added
- **Breaking Change** `MessageData` now supports `.photo(UIImage)`, `.location(CLLocation)`, `.video(file: URL, thumbnail: UIImage)` cases.
- **Breaking Change** `MessageCollectionViewCell` is now generic over its `ContentView` constrained to `UIView`.
- **Breaking Change** `TextMessageCell` subclass of `MessageCollectionViewCell` to support text messages.
- `MediaMessageCell` subclass of `MessageCollectionViewCell` to support photo/video messages.
- `LocationMessageCell` subclass of `MessageCollectionViewCell` to support location messages.
- Adds `LocationMessageLayoutDelegate` for sizing of location messages.
- Adds `MediaMessageLayoutDelegate` for sizing of media messages.
- `AvatarView` now supports `fontMinimumScaleFactor`, `placeholderFontColor`, and `placeholderFont` properties
### Changed
- Keyboard handling no longer adjusts the top & bottom insets for `MessagesCollectionView`.
- `MessageStyle`s are now applied as a `mask` on the `MessageContainerView`
### Deprecated
- `MessageCollectionViewCell`'s `messageLabel` has been renamed to `messageContentView`
- `AvatarView`'s `setBackground(color: UIColor)` method has been deprecated in favor of `backgroundColor`
- `AvatarView`'s `getImage()` method has been deprecated in favor of a new `image` property.
### Fixed
- Fixes extra height on text messages due to font specified in `MessagesCollectionViewFlowLayout` not being applied.
- `AvatarView`'s placeholder image is no longer constrained to a size of `30 x 30`.
- `AvatarView`'s placeholder text can now auto-adjust based on available width.
## [Prerelease] 0.7.4
- Fixes invalid image path for Carthage resources.
## [Prerelease] 0.7.3
- Fixes missing asset bundle resources for Carthage installation.
+1 -14
View File
@@ -185,21 +185,8 @@ open class AvatarView: UIView {
}
extension FloatingPoint {
fileprivate extension FloatingPoint {
var degreesToRadians: Self { return self * .pi / 180 }
var radiansToDegrees: Self { return self * 180 / .pi }
}
public extension AvatarView {
@available(*, deprecated: 0.8.0, message: "setBackground(_:) has been deprecated. Please use the backgroundColor property instead.")
public func setBackground(color: UIColor) {
backgroundColor = color
}
@available(*, deprecated: 0.8.0, message: "getImage() has been deprecated. Please use the image property instead.")
public func getImage() -> UIImage? {
return imageView.image
}
}
+28
View File
@@ -128,3 +128,31 @@ public extension MessageContainerView {
}
}
// MARK: - MessageCollectionViewCell
public extension MessageCollectionViewCell where ContentView == MessageLabel {
@available(*, deprecated: 0.8.0, message: "messageLabel has been deprecated. Please use the messageContentView property instead.")
public var messageLabel: MessageLabel {
get { return messageContentView }
set { messageContentView = newValue }
}
}
// MARK: - AvatarView
public extension AvatarView {
@available(*, deprecated: 0.8.0, message: "setBackground(_:) has been deprecated. Please use the backgroundColor property instead.")
public func setBackground(color: UIColor) {
backgroundColor = color
}
@available(*, deprecated: 0.8.0, message: "getImage() has been deprecated. Please use the image property instead.")
public func getImage() -> UIImage? {
return imageView.image
}
}