mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-06-16 12:24:31 +00:00
🎨 :: Format code
This commit is contained in:
@@ -21,10 +21,7 @@ final class AdvancedExampleTableViewController: UITableViewController {
|
||||
#colorLiteral(red: 0.9490196078, green: 0.3215686275, blue: 0.431372549, alpha: 1), #colorLiteral(red: 0.9450980392, green: 0.4784313725, blue: 0.5921568627, alpha: 1), #colorLiteral(red: 0.9529411765, green: 0.737254902, blue: 0.7843137255, alpha: 1), #colorLiteral(red: 0.4274509804, green: 0.8666666667, blue: 0.9490196078, alpha: 1), #colorLiteral(red: 0.7568627451, green: 0.9411764706, blue: 0.9568627451, alpha: 1),
|
||||
]
|
||||
|
||||
///
|
||||
static let firstSectionHeaderHeight: CGFloat = 48
|
||||
|
||||
///
|
||||
static let defaultSectionHeaderHeight: CGFloat = 32
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ struct SwiftUIExampleView: View {
|
||||
// MARK: - Subviews
|
||||
|
||||
private struct DefaultExampleView: View {
|
||||
|
||||
@State
|
||||
private var isVisible = true
|
||||
|
||||
@@ -69,6 +70,7 @@ private struct DefaultExampleView: View {
|
||||
}
|
||||
|
||||
private struct CustomColorsExampleView: View {
|
||||
|
||||
private enum Config {
|
||||
/// The custom gradient colors we use.
|
||||
/// Source: https://color.adobe.com/Pink-Flamingo-color-theme-10343714/
|
||||
@@ -112,6 +114,7 @@ private struct CustomColorsExampleView: View {
|
||||
}
|
||||
|
||||
private struct CustomProgressDurationExampleView: View {
|
||||
|
||||
private enum Config {
|
||||
/// The custom progress duration to use.
|
||||
static let progressDuration: TimeInterval = 10
|
||||
@@ -154,6 +157,7 @@ private struct CustomProgressDurationExampleView: View {
|
||||
// MARK: - Helper
|
||||
|
||||
private struct RoundedRectangleButtonStyle: ButtonStyle {
|
||||
|
||||
func makeBody(configuration: Configuration) -> some View {
|
||||
configuration.label
|
||||
.padding(12)
|
||||
|
||||
Reference in New Issue
Block a user