mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-08 22:33:26 +01:00
Merge pull request #871 from neoarz/develop
Fix Repository App Previews for “countdown”
This commit is contained in:
@@ -383,11 +383,11 @@ public class StoreApp: NSManagedObject, Decodable, Fetchable
|
|||||||
}
|
}
|
||||||
else if let screenshotURLs = try container.decodeIfPresent([URL].self, forKey: .screenshotURLs)
|
else if let screenshotURLs = try container.decodeIfPresent([URL].self, forKey: .screenshotURLs)
|
||||||
{
|
{
|
||||||
// Assume 9:16 iPhone 8 screen dimensions for legacy screenshotURLs.
|
// Update to iPhone 13 screen size
|
||||||
let legacyAspectRatio = CGSize(width: 750, height: 1334)
|
let modernAspectRatio = CGSize(width: 1170, height: 2532)
|
||||||
|
|
||||||
appScreenshots = screenshotURLs.map { imageURL in
|
appScreenshots = screenshotURLs.map { imageURL in
|
||||||
let screenshot = AppScreenshot(imageURL: imageURL, size: legacyAspectRatio, deviceType: .iphone, context: context)
|
let screenshot = AppScreenshot(imageURL: imageURL, size: modernAspectRatio, deviceType: .iphone, context: context)
|
||||||
return screenshot
|
return screenshot
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user