From 76eac284aa7186554527a30980981a0b7017fa69 Mon Sep 17 00:00:00 2001 From: "nicolas.goutaland" Date: Mon, 7 Jan 2019 15:40:30 +0100 Subject: [PATCH] Fixed list item alignment bug in iOS12 --- CHANGELOG.md | 2 ++ Classes/GONMarkupListItem.m | 2 +- GONMarkupParser.podspec | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa3319a..23d3997 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ # Change Log +## [__0.8.1__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.8.1) +Fixed list alignment bug in iOS12
## [__0.8.0__](https://github.com/nicolasgoutaland/GONMarkupParser/releases/tag/0.8.0) Improved Paragraph layout
Improved List Item layout
diff --git a/Classes/GONMarkupListItem.m b/Classes/GONMarkupListItem.m index 3672624..8c166e4 100644 --- a/Classes/GONMarkupListItem.m +++ b/Classes/GONMarkupListItem.m @@ -74,7 +74,7 @@ - (void)openingMarkupFound:(NSString *)tag resultString:resultString]; // Compute prefix string width - paragraphStyle.headIndent = CGRectGetWidth([prefixString boundingRectWithSize:CGSizeMake(CGFLOAT_MAX, 1) + paragraphStyle.headIndent = CGRectGetWidth([prefixString boundingRectWithSize:CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX) options:NSStringDrawingUsesLineFragmentOrigin context:nil]); } diff --git a/GONMarkupParser.podspec b/GONMarkupParser.podspec index f298e70..e093fdc 100644 --- a/GONMarkupParser.podspec +++ b/GONMarkupParser.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "GONMarkupParser" - s.version = "0.8.0" + s.version = "0.8.1" s.summary = "NSAttributedString generation from NSString using XML, that can be easily extended." s.platform = :ios, "7.0" s.description = <<-DESC