diff --git a/Airship.podspec b/Airship.podspec index 60bdcb202..8edb568d1 100644 --- a/Airship.podspec +++ b/Airship.podspec @@ -1,4 +1,4 @@ -AIRSHIP_VERSION="18.14.1" +AIRSHIP_VERSION="18.14.2" Pod::Spec.new do |s| s.version = AIRSHIP_VERSION diff --git a/Airship/AirshipAutomation/Source/InAppMessage/View/InAppMessageBannerView.swift b/Airship/AirshipAutomation/Source/InAppMessage/View/InAppMessageBannerView.swift index 2a208d9dc..0c70d0534 100644 --- a/Airship/AirshipAutomation/Source/InAppMessage/View/InAppMessageBannerView.swift +++ b/Airship/AirshipAutomation/Source/InAppMessage/View/InAppMessageBannerView.swift @@ -39,6 +39,7 @@ struct InAppMessageBannerView: View { .fixedSize(horizontal: false, vertical: true) .accessibilityAddTraits(.isHeader) .accessibilityAddTraits(.isStaticText) + .applyAlignment(placement: heading.alignment ?? .left) } } @@ -48,6 +49,7 @@ struct InAppMessageBannerView: View { TextView(textInfo: body, textTheme: self.theme.body) .fixedSize(horizontal: false, vertical: true) .accessibilityAddTraits(.isStaticText) + .applyAlignment(placement: body.alignment ?? .left) } } @@ -110,15 +112,15 @@ struct InAppMessageBannerView: View { HStack(alignment: .top, spacing: 16) { mediaView VStack(alignment: .center, spacing: 16) { - headerView.applyAlignment(placement: displayContent.heading?.alignment ?? .left) - bodyView.applyAlignment(placement: displayContent.body?.alignment ?? .left) + headerView + bodyView } } case .mediaRight: HStack(alignment: .top, spacing: 16) { VStack(alignment: .center, spacing: 16) { - headerView.applyAlignment(placement: displayContent.heading?.alignment ?? .left) - bodyView.applyAlignment(placement: displayContent.body?.alignment ?? .left) + headerView + bodyView } mediaView } diff --git a/Airship/AirshipConfig.xcconfig b/Airship/AirshipConfig.xcconfig index bcc39e661..57071a6af 100644 --- a/Airship/AirshipConfig.xcconfig +++ b/Airship/AirshipConfig.xcconfig @@ -1,6 +1,6 @@ //* Copyright Airship and Contributors */ -CURRENT_PROJECT_VERSION = 18.14.1 +CURRENT_PROJECT_VERSION = 18.14.2 // Uncomment to include the preview build warning // OTHER_CFLAGS = $(inherited) -DUA_PREVIEW=1 diff --git a/Airship/AirshipCore/Source/AirshipVersion.swift b/Airship/AirshipCore/Source/AirshipVersion.swift index dc8d651ee..d0328b0e5 100644 --- a/Airship/AirshipCore/Source/AirshipVersion.swift +++ b/Airship/AirshipCore/Source/AirshipVersion.swift @@ -3,7 +3,7 @@ import Foundation public struct AirshipVersion { - public static let version = "18.14.1" + public static let version = "18.14.2" public static func get() -> String { return version } diff --git a/AirshipContentExtension.podspec b/AirshipContentExtension.podspec index 4bc512b66..97dcc86cf 100644 --- a/AirshipContentExtension.podspec +++ b/AirshipContentExtension.podspec @@ -1,4 +1,4 @@ -AIRSHIP_VERSION="18.14.1" +AIRSHIP_VERSION="18.14.2" Pod::Spec.new do |s| s.version = AIRSHIP_VERSION diff --git a/AirshipDebug.podspec b/AirshipDebug.podspec index 479269ca7..5a1bac5cf 100644 --- a/AirshipDebug.podspec +++ b/AirshipDebug.podspec @@ -1,4 +1,4 @@ -AIRSHIP_VERSION="18.14.1" +AIRSHIP_VERSION="18.14.2" Pod::Spec.new do |s| s.version = AIRSHIP_VERSION diff --git a/AirshipServiceExtension.podspec b/AirshipServiceExtension.podspec index f61d22984..c392dff58 100644 --- a/AirshipServiceExtension.podspec +++ b/AirshipServiceExtension.podspec @@ -1,4 +1,4 @@ -AIRSHIP_VERSION="18.14.1" +AIRSHIP_VERSION="18.14.2" Pod::Spec.new do |s| s.version = AIRSHIP_VERSION diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b37d9196..0d543a4fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # iOS Changelog +## Version 18.14.2 January 9, 2025 +Patch release to fix extra spacing in a Banner In-App Automations if its missing the heading or body. + +### Changes +- Fix Banner In-App Automation extra spacing. + ## Version 18.14.1 December 20, 2024 Patch release to fix Banner In-App Automations if the image is taller than the text. diff --git a/Thomas/Thomas/Resources/Messages/Banner/small-banner.json b/Thomas/Thomas/Resources/Messages/Banner/small-banner.json index 2149493a1..a30313b3c 100644 --- a/Thomas/Thomas/Resources/Messages/Banner/small-banner.json +++ b/Thomas/Thomas/Resources/Messages/Banner/small-banner.json @@ -6,14 +6,13 @@ "background_color" : "#ffffff", "border_radius" : 5, "dismiss_button_color" : "#000000", - "heading" : { + "body" : { "alignment" : "center", "color" : "#63aff2", "font_family" : [ "sans-serif" ], - "size" : 22, - "text" : "Boom" + "text" : "Text body, text body, text body, text body, text body" }, "template" : "media_left", "placement" : "bottom",