diff --git a/PurePKG.xcodeproj/project.pbxproj b/PurePKG.xcodeproj/project.pbxproj index acf53b9..05212b9 100644 --- a/PurePKG.xcodeproj/project.pbxproj +++ b/PurePKG.xcodeproj/project.pbxproj @@ -69,7 +69,7 @@ 65B8203D2B4F29BB0032D504 /* Package.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65B8203C2B4F29BB0032D504 /* Package.swift */; }; 65B8203F2B4F2A3E0032D504 /* Misc.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65B8203E2B4F2A3E0032D504 /* Misc.swift */; }; 65B820412B4F382A0032D504 /* AppData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65B820402B4F382A0032D504 /* AppData.swift */; }; - 65E0FB032BBD1924007CADCA /* MarkdownUI in Frameworks */ = {isa = PBXBuildFile; platformFilter = ios; productRef = 65E0FB022BBD1924007CADCA /* MarkdownUI */; }; + 65E0FB032BBD1924007CADCA /* MarkdownUI in Frameworks */ = {isa = PBXBuildFile; productRef = 65E0FB022BBD1924007CADCA /* MarkdownUI */; }; 65E0FB042BBD210B007CADCA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 657B46A02B4DD9F000AFC1F6 /* Assets.xcassets */; }; 65E0FB062BBD2120007CADCA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 657B46A02B4DD9F000AFC1F6 /* Assets.xcassets */; }; 65E0FB072BBD2120007CADCA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 657B46A02B4DD9F000AFC1F6 /* Assets.xcassets */; }; @@ -635,7 +635,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.3; + MARKETING_VERSION = 1.4; ONLY_ACTIVE_ARCH = YES; PRODUCT_BUNDLE_IDENTIFIER = uwu.lrdsnow.PurePKG.watchkitapp; PRODUCT_NAME = PurePKG; @@ -667,7 +667,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.3; + MARKETING_VERSION = 1.4; PRODUCT_BUNDLE_IDENTIFIER = uwu.lrdsnow.PurePKG.watchkitapp; PRODUCT_NAME = PurePKG; SDKROOT = watchos; @@ -698,7 +698,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.3; + MARKETING_VERSION = 1.4; PRODUCT_BUNDLE_IDENTIFIER = uwu.lrdsnow.PurePKG.visionOS; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = xros; @@ -729,7 +729,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.3; + MARKETING_VERSION = 1.4; PRODUCT_BUNDLE_IDENTIFIER = uwu.lrdsnow.PurePKG.visionOS; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = xros; diff --git a/PurePKG.xcodeproj/project.xcworkspace/xcuserdata/lrdsnow.xcuserdatad/UserInterfaceState.xcuserstate b/PurePKG.xcodeproj/project.xcworkspace/xcuserdata/lrdsnow.xcuserdatad/UserInterfaceState.xcuserstate index 0d18109..cdbf5f0 100644 Binary files a/PurePKG.xcodeproj/project.xcworkspace/xcuserdata/lrdsnow.xcuserdatad/UserInterfaceState.xcuserstate and b/PurePKG.xcodeproj/project.xcworkspace/xcuserdata/lrdsnow.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/PurePKGvisionOS/Main/BrowseView.swift b/PurePKGvisionOS/Main/BrowseView.swift index 12bae13..d557059 100644 --- a/PurePKGvisionOS/Main/BrowseView.swift +++ b/PurePKGvisionOS/Main/BrowseView.swift @@ -9,28 +9,6 @@ import Foundation import SwiftUI import Kingfisher -struct CustomNavigationView: View { - let content: Content - - init(@ViewBuilder content: () -> Content) { - self.content = content() - } - - var body: some View { -#if os(macOS) - NavigationStack { - content - } -#else - NavigationView { - content - }.navigationViewStyle(.stack) -#endif - } -} - - - struct BrowseView: View { @EnvironmentObject var appData: AppData @State private var newRepoURL = "" diff --git a/Shared/Extensions/Misc.swift b/Shared/Extensions/Misc.swift index a127458..2b76fff 100644 --- a/Shared/Extensions/Misc.swift +++ b/Shared/Extensions/Misc.swift @@ -221,9 +221,13 @@ extension Array where Element: Hashable { extension UIImage { func downscaled(to size: CGSize) -> UIImage? { + #if os(tvOS) || os(iOS) return UIGraphicsImageRenderer(size: size).image { _ in self.draw(in: CGRect(origin: .zero, size: size)) } + #else + return self + #endif } }