mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-08 22:33:26 +01:00
Fix build errors after merge
This commit is contained in:
@@ -66,7 +66,7 @@ struct AppIconView_Previews: PreviewProvider {
|
||||
|
||||
static var previews: some View {
|
||||
HStack {
|
||||
AppIconView(iconUrl: app.iconURL)
|
||||
AppIconView(iconUrl: app.iconURL, isSideStore: true)
|
||||
|
||||
VStack(alignment: .leading) {
|
||||
Text(app.name)
|
||||
|
||||
@@ -121,7 +121,7 @@ struct AppPillButton_Previews: PreviewProvider {
|
||||
static func preview(for app: AppProtocol, showRemainingDays: Bool = false) -> some View {
|
||||
HintView(backgroundColor: Color(UIColor.secondarySystemBackground)) {
|
||||
HStack {
|
||||
AppIconView(iconUrl: self.app.iconURL)
|
||||
AppIconView(iconUrl: self.app.iconURL, isSideStore: true)
|
||||
|
||||
VStack(alignment: .leading) {
|
||||
Text(app is StoreApp ? "Store App" : "Installed App")
|
||||
|
||||
@@ -29,7 +29,7 @@ struct WriteAppReviewView: View {
|
||||
List {
|
||||
// App Information
|
||||
HStack {
|
||||
AppIconView(iconUrl: storeApp.iconURL, size: 50)
|
||||
AppIconView(iconUrl: storeApp.iconURL, isSideStore: storeApp.bundleIdentifier == Bundle.Info.appbundleIdentifier, size: 50)
|
||||
VStack(alignment: .leading) {
|
||||
Text(storeApp.name)
|
||||
.bold()
|
||||
|
||||
@@ -22,7 +22,7 @@ private struct SpecialIcon {
|
||||
}
|
||||
|
||||
class AppIconsData: ObservableObject {
|
||||
static let shared: AppIconsData = AppIconsData()
|
||||
static let shared = AppIconsData()
|
||||
|
||||
private static let specialIcons = [
|
||||
SpecialIcon(assetName: "Neon", suffix: "(Stable)", forceIndex: 0),
|
||||
@@ -34,7 +34,7 @@ class AppIconsData: ObservableObject {
|
||||
@Published var primaryIcon: Icon?
|
||||
@Published var selectedIconName: String?
|
||||
|
||||
init() {
|
||||
private init() {
|
||||
let bundleIcons = Bundle.main.object(forInfoDictionaryKey: "CFBundleIcons") as! [String: Any]
|
||||
|
||||
let primaryIconData = bundleIcons["CFBundlePrimaryIcon"] as! [String: Any]
|
||||
|
||||
Reference in New Issue
Block a user