mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-21 22:05:59 +00:00
Formatting
This commit is contained in:
1 parent
edc09b048c
commit
ec093cf302
3 files changed
+15
-4
No files matched your search
@@ -1739,7 +1739,7 @@
|
|||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
SHARED_BUILD = 120;
|
SHARED_BUILD = 122;
|
||||||
SHARED_VERSION = 2.13;
|
SHARED_VERSION = 2.13;
|
||||||
STRING_CATALOG_GENERATE_SYMBOLS = YES;
|
STRING_CATALOG_GENERATE_SYMBOLS = YES;
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||||
@@ -1802,7 +1802,7 @@
|
|||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
SHARED_BUILD = 120;
|
SHARED_BUILD = 122;
|
||||||
SHARED_VERSION = 2.13;
|
SHARED_VERSION = 2.13;
|
||||||
STRING_CATALOG_GENERATE_SYMBOLS = YES;
|
STRING_CATALOG_GENERATE_SYMBOLS = YES;
|
||||||
SWIFT_COMPILATION_MODE = wholemodule;
|
SWIFT_COMPILATION_MODE = wholemodule;
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
"location" : "https://github.com/leonboe1/LUI.git",
|
"location" : "https://github.com/leonboe1/LUI.git",
|
||||||
"state" : {
|
"state" : {
|
||||||
"branch" : "main",
|
"branch" : "main",
|
||||||
"revision" : "ecd2793fdf678fa80de2f528589b3c11cac4f1d4"
|
"revision" : "0cf19849a8b1779453e54558ce968f5f1c30e92a"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -192,7 +192,6 @@ struct QuickDropToastView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.padding(.leading, 16)
|
.padding(.leading, 16)
|
||||||
.frame(width: toastViewSize.width, height: toastViewSize.height)
|
.frame(width: toastViewSize.width, height: toastViewSize.height)
|
||||||
@@ -255,6 +254,7 @@ struct QuickDropToastView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
struct QuickDropToastHostView: View {
|
struct QuickDropToastHostView: View {
|
||||||
@ObservedObject var receiveModel: ReceiveModel
|
@ObservedObject var receiveModel: ReceiveModel
|
||||||
let onCancel: () -> Void
|
let onCancel: () -> Void
|
||||||
@@ -295,6 +295,7 @@ fileprivate struct QuickDropToastViewButton: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fileprivate struct QuickDropToastViewMenuButton<Content: View>: View {
|
fileprivate struct QuickDropToastViewMenuButton<Content: View>: View {
|
||||||
let title: String
|
let title: String
|
||||||
@ViewBuilder let content: () -> Content
|
@ViewBuilder let content: () -> Content
|
||||||
@@ -306,9 +307,11 @@ fileprivate struct QuickDropToastViewMenuButton<Content: View>: View {
|
|||||||
ToastButtonLabel(title: title, fillsWidth: false)
|
ToastButtonLabel(title: title, fillsWidth: false)
|
||||||
}
|
}
|
||||||
.menuStyle(.borderlessButton)
|
.menuStyle(.borderlessButton)
|
||||||
|
.padding(.horizontal, 6)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fileprivate struct ToastButtonLabel: View {
|
fileprivate struct ToastButtonLabel: View {
|
||||||
let title: String
|
let title: String
|
||||||
let fillsWidth: Bool
|
let fillsWidth: Bool
|
||||||
@@ -325,6 +328,7 @@ fileprivate struct ToastButtonLabel: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fileprivate struct ActionColumn<Content: View>: View {
|
fileprivate struct ActionColumn<Content: View>: View {
|
||||||
let width: CGFloat
|
let width: CGFloat
|
||||||
@ViewBuilder let content: () -> Content
|
@ViewBuilder let content: () -> Content
|
||||||
@@ -345,6 +349,7 @@ fileprivate struct ActionColumn<Content: View>: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fileprivate struct ActionButtonRow<Content: View>: View {
|
fileprivate struct ActionButtonRow<Content: View>: View {
|
||||||
@ViewBuilder let content: () -> Content
|
@ViewBuilder let content: () -> Content
|
||||||
|
|
||||||
@@ -354,6 +359,7 @@ fileprivate struct ActionButtonRow<Content: View>: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fileprivate struct ActionDividerLine: View {
|
fileprivate struct ActionDividerLine: View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Rectangle()
|
Rectangle()
|
||||||
@@ -455,6 +461,7 @@ struct QuickDropToastView_Previews: PreviewProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
struct ConsentDemo2: View {
|
struct ConsentDemo2: View {
|
||||||
@State var model = ReceiveModel(controlPlusScreen: { _ in })
|
@State var model = ReceiveModel(controlPlusScreen: { _ in })
|
||||||
|
|
||||||
@@ -479,6 +486,7 @@ struct QuickDropToastView_Previews: PreviewProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
struct ProgressDemo: View {
|
struct ProgressDemo: View {
|
||||||
@State var model = ReceiveModel(controlPlusScreen: { _ in })
|
@State var model = ReceiveModel(controlPlusScreen: { _ in })
|
||||||
@@ -498,6 +506,7 @@ struct QuickDropToastView_Previews: PreviewProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
struct CompletedDemo: View {
|
struct CompletedDemo: View {
|
||||||
@State var model = ReceiveModel(controlPlusScreen: { _ in })
|
@State var model = ReceiveModel(controlPlusScreen: { _ in })
|
||||||
@@ -517,6 +526,7 @@ struct QuickDropToastView_Previews: PreviewProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static let previewWallpaper = LinearGradient(
|
private static let previewWallpaper = LinearGradient(
|
||||||
gradient: Gradient(colors: [
|
gradient: Gradient(colors: [
|
||||||
@@ -527,6 +537,7 @@ struct QuickDropToastView_Previews: PreviewProvider {
|
|||||||
startPoint: .topLeading,
|
startPoint: .topLeading,
|
||||||
endPoint: .bottomTrailing
|
endPoint: .bottomTrailing
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
Group {
|
Group {
|
||||||
|
|||||||
Reference in new issue
Block a user