Skip to content

Commit

Permalink
Paywalls: fixed template 3 icon aspect ratio (#2969)
Browse files Browse the repository at this point in the history
See snapshots.
Thanks @guido732 for pointing this out.
  • Loading branch information
NachoSoto committed Aug 31, 2023
1 parent 749a7bf commit c5fd135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RevenueCatUI/Templates/OnePackageWithFeaturesTemplate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct OnePackageWithFeaturesTemplate: TemplateViewType {
private var content: some View {
VStack {
if let url = self.configuration.iconImageURL {
RemoteImage(url: url)
RemoteImage(url: url, aspectRatio: 1)
.frame(width: self.iconSize, height: self.iconSize)
.cornerRadius(8)
}
Expand Down Expand Up @@ -103,7 +103,7 @@ struct OnePackageWithFeaturesTemplate: TemplateViewType {
}

@ScaledMetric(relativeTo: .title)
private var iconSize = 55
private var iconSize = 65

}

Expand Down

0 comments on commit c5fd135

Please sign in to comment.