Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lrdsnow committed Apr 13, 2024
1 parent 0fc95fe commit 6a6b5a6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 27 deletions.
10 changes: 5 additions & 5 deletions PurePKG.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */; };
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Binary file not shown.
22 changes: 0 additions & 22 deletions PurePKGvisionOS/Main/BrowseView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,6 @@ import Foundation
import SwiftUI
import Kingfisher

struct CustomNavigationView<Content: View>: 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 = ""
Expand Down
4 changes: 4 additions & 0 deletions Shared/Extensions/Misc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 6a6b5a6

Please sign in to comment.