mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 02:51:11 +00:00
Package updates
This commit is contained in:
1 parent
487a27a019
commit
800fd23be3
10 files changed
+90
-92
No files matched your search
@@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
import LUI
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
|
||||
let configuration = LUIConfiguration(
|
||||
appName: "QuickDrop",
|
||||
@@ -31,7 +31,9 @@ let configuration = LUIConfiguration(
|
||||
|
||||
introductionViewInformation: "QuickDropWelcomeDescription",
|
||||
|
||||
usesAutomaticReviewPrompt: false,
|
||||
introductionViewImage: Image(.quickDropMockup),
|
||||
|
||||
usesAutomaticReviewPromptAndShareSheet: false,
|
||||
|
||||
usesPagedIntroduction: true,
|
||||
|
||||
|
||||
@@ -167,9 +167,8 @@ struct DeviceListView: View {
|
||||
.font(.system(size: 14))
|
||||
.foregroundColor(Color.primary.opacity(0.6))
|
||||
|
||||
LoadingIndicator()
|
||||
LoadingIndicator(size: 12)
|
||||
.opacity(0.75)
|
||||
.frame(width: 12, height: 12)
|
||||
}
|
||||
.padding(.vertical, 16)
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ public struct LocalNetworkPermissionView: View {
|
||||
|
||||
public var body: some View {
|
||||
|
||||
PermissionView(title: "introduction_local_network_access", symbol: "", subtitle: "introduction_local_network_access_description", permissionAction: {
|
||||
PermissionView(title: "introduction_local_network_access", symbol: "", subtitle: "introduction_local_network_access_description".localized(with: "introduction_continue".localized()), permissionAction: {
|
||||
|
||||
if requestedLocalNetworkAccess {
|
||||
// Something went wrong, user pressed again on continue. In this case, just continue with setup
|
||||
@@ -27,15 +27,12 @@ public struct LocalNetworkPermissionView: View {
|
||||
let manager = NearbyConnectionManager.shared
|
||||
manager.startDeviceDiscovery()
|
||||
}
|
||||
}, canSkip: false, nextView: {
|
||||
}, continueLabel: "introduction_continue", canSkip: false, nextView: {
|
||||
IntroductionDoneView()
|
||||
}, nextViewSkip: {}, frontMockup: {
|
||||
AppMockupFrontView()
|
||||
}, backMockup: {
|
||||
SymbolMockupView(symbol: "globe")
|
||||
}, nextViewSkip: {}, topView: {
|
||||
IntroductionIconView(icon: "wifi")
|
||||
})
|
||||
.onChange(of: scenePhase) { newValue in
|
||||
|
||||
// alert was removed from screen, app is foreground again -> continue with intro
|
||||
if newValue == .active && requestedLocalNetworkAccess {
|
||||
IntroductionViewController.sharedInstance.canProceed = true
|
||||
|
||||
Reference in new issue
Block a user