diff --git a/CHANGELOG.md b/CHANGELOG.md index eb04451f..0b76c213 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa ## Upcoming release +### Fixed + +- Fixed `LabelAlignment` initializer which has default internal access control. +[#705](https://github.com/MessageKit/MessageKit/pull/705) by [@zhongwuzw](https://github.com/zhongwuzw). + ## [[Prerelease] 1.0.0-beta.1](https://github.com/MessageKit/MessageKit/releases/tag/1.0.0-beta.1) ### Added diff --git a/Sources/Models/LabelAlignment.swift b/Sources/Models/LabelAlignment.swift index b75838de..320971fc 100644 --- a/Sources/Models/LabelAlignment.swift +++ b/Sources/Models/LabelAlignment.swift @@ -28,6 +28,11 @@ public struct LabelAlignment { public var textAlignment: NSTextAlignment public var textInsets: UIEdgeInsets + + public init(textAlignment: NSTextAlignment, textInsets: UIEdgeInsets) { + self.textAlignment = textAlignment + self.textInsets = textInsets + } }