Revises store page permissions UI (again)

* Switches back “Permissions” and “Privacy” section titles
* Shrinks privacy permissions card title font
* Combines privacy + entitlements back into single “Permissions” section
* Removes “Entitlements” section name
This commit is contained in:
Riley Testut
2023-05-29 16:30:09 -05:00
committed by Magesh K
parent 86ae06e0c8
commit e03813c19e
3 changed files with 4 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ class AppDetailCollectionViewController: UICollectionViewController
{
case .privacy: break
case .knownEntitlements:
configuration.text = NSLocalizedString("Entitlements", comment: "")
configuration.text = nil
configuration.secondaryTextProperties.font = UIFont.preferredFont(forTextStyle: .callout)
configuration.textToSecondaryTextVerticalPadding = 8
@@ -206,7 +206,7 @@ private extension AppDetailCollectionViewController
guard let self, #available(iOS 16, *) else { return }
cell.contentConfiguration = UIHostingConfiguration {
AppPermissionsCard(title: "Permissions",
AppPermissionsCard(title: "Privacy",
description: "\(self.app.name) may request access to the following:",
tintColor: Color(uiColor: self.app.tintColor ?? .altPrimary),
permissions: self.privacyPermissions)