Add button to enable share extension

This commit is contained in:
Leon Böttger committed 2025-12-26 13:18:54 +01:00
1 parent 46cdec35d5
commit 728385ff95
8 files changed
+1214 -183

No files matched your search

+1 -8
View File
@@ -95,14 +95,7 @@ struct DeviceListView: View {
}
if !nearbyConnectionManager.hasLocalNetworkPermission {
CardView(backgroundColor: .red, title: "NoNetworkAccess", titleSymbol: "network.slash") {
LUIText("NoLocalNetworkAccessDescription", color: .white)
.frame(maxWidth: .infinity, alignment: .leading)
}
.padding(.bottom, 10)
.onTapGesture {
openAppSettings()
}
NoLocalNetworkAccessAlertView()
}
var availableDevices: [RemoteDeviceInfo] {
-1
View File
@@ -49,7 +49,6 @@ struct SendPickerButton<Label: View>: View {
onPrepare?()
updatedPhotoSelection(content: newItems)
}
// File picker
.fileImporter(isPresented: $showFilePicker,
allowedContentTypes: [.item, .folder], // any file
allowsMultipleSelection: true) { result in
@@ -0,0 +1,24 @@
//
// NoLocalNetworkAccessAlertView.swift
// QuickDrop
//
// Created by Leon Böttger on 26.12.25.
//
import LUI
import SwiftUI
struct NoLocalNetworkAccessAlertView: View {
var body: some View {
CardView(backgroundColor: .red, title: "NoNetworkAccess", titleSymbol: "network.slash") {
LUIText("NoLocalNetworkAccessDescription", color: .white)
.frame(maxWidth: .infinity, alignment: .leading)
}
.padding(.bottom, 10)
.onTapGesture {
#if os(iOS)
openAppSettings()
#endif
}
}
}