diff --git a/SwiftPamphletApp/ViewComponet/ViewComponentImage.swift b/SwiftPamphletApp/ViewComponet/ViewComponentImage.swift index 98df395de..2ccb9cadf 100644 --- a/SwiftPamphletApp/ViewComponet/ViewComponentImage.swift +++ b/SwiftPamphletApp/ViewComponet/ViewComponentImage.swift @@ -37,7 +37,9 @@ struct NukeImage: View { .foregroundColor(.secondary) } } else { - ProgressView() + Image(systemName: "chart.bar.doc.horizontal") + .imageScale(.large) + .symbolEffect(.variableColor.iterative.dimInactiveLayers.reversing, isActive: state.image == nil) } } .pipeline(pipeline) diff --git a/SwiftPamphletApp/ViewComponet/ViewStyle.swift b/SwiftPamphletApp/ViewComponet/ViewStyle.swift index 18108ebbb..80070315a 100644 --- a/SwiftPamphletApp/ViewComponet/ViewStyle.swift +++ b/SwiftPamphletApp/ViewComponet/ViewStyle.swift @@ -7,6 +7,7 @@ import SwiftUI +// MARK: Text extension Text { func gradientTitle(color: Color = .primary) -> some View { self @@ -17,6 +18,7 @@ extension Text { } } +// MARK: TextEidtor extension TextEditor { func border() -> some View { self @@ -29,6 +31,10 @@ extension TextEditor { } } + +// MARK: TextField + +// 圆角 extension TextField { func rounded() -> some View { self @@ -36,8 +42,8 @@ extension TextField { } } +// MARK: Toggle struct SymbolToggleStyle: ToggleStyle { - var systemImage: String = "checkmark" var activeColor: Color = .green