Fix build errors after merge

This commit is contained in:
naturecodevoid
2023-02-19 10:56:01 -08:00
parent 47848ddd18
commit 2aa880d10e
4 changed files with 5 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ struct AppIconView_Previews: PreviewProvider {
static var previews: some View { static var previews: some View {
HStack { HStack {
AppIconView(iconUrl: app.iconURL) AppIconView(iconUrl: app.iconURL, isSideStore: true)
VStack(alignment: .leading) { VStack(alignment: .leading) {
Text(app.name) Text(app.name)

View File

@@ -121,7 +121,7 @@ struct AppPillButton_Previews: PreviewProvider {
static func preview(for app: AppProtocol, showRemainingDays: Bool = false) -> some View { static func preview(for app: AppProtocol, showRemainingDays: Bool = false) -> some View {
HintView(backgroundColor: Color(UIColor.secondarySystemBackground)) { HintView(backgroundColor: Color(UIColor.secondarySystemBackground)) {
HStack { HStack {
AppIconView(iconUrl: self.app.iconURL) AppIconView(iconUrl: self.app.iconURL, isSideStore: true)
VStack(alignment: .leading) { VStack(alignment: .leading) {
Text(app is StoreApp ? "Store App" : "Installed App") Text(app is StoreApp ? "Store App" : "Installed App")

View File

@@ -29,7 +29,7 @@ struct WriteAppReviewView: View {
List { List {
// App Information // App Information
HStack { HStack {
AppIconView(iconUrl: storeApp.iconURL, size: 50) AppIconView(iconUrl: storeApp.iconURL, isSideStore: storeApp.bundleIdentifier == Bundle.Info.appbundleIdentifier, size: 50)
VStack(alignment: .leading) { VStack(alignment: .leading) {
Text(storeApp.name) Text(storeApp.name)
.bold() .bold()

View File

@@ -22,7 +22,7 @@ private struct SpecialIcon {
} }
class AppIconsData: ObservableObject { class AppIconsData: ObservableObject {
static let shared: AppIconsData = AppIconsData() static let shared = AppIconsData()
private static let specialIcons = [ private static let specialIcons = [
SpecialIcon(assetName: "Neon", suffix: "(Stable)", forceIndex: 0), SpecialIcon(assetName: "Neon", suffix: "(Stable)", forceIndex: 0),
@@ -34,7 +34,7 @@ class AppIconsData: ObservableObject {
@Published var primaryIcon: Icon? @Published var primaryIcon: Icon?
@Published var selectedIconName: String? @Published var selectedIconName: String?
init() { private init() {
let bundleIcons = Bundle.main.object(forInfoDictionaryKey: "CFBundleIcons") as! [String: Any] let bundleIcons = Bundle.main.object(forInfoDictionaryKey: "CFBundleIcons") as! [String: Any]
let primaryIconData = bundleIcons["CFBundlePrimaryIcon"] as! [String: Any] let primaryIconData = bundleIcons["CFBundlePrimaryIcon"] as! [String: Any]