mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +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 {
|
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)
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user