From 5e4554272f1262120a643efb39ccdb890ae592fe Mon Sep 17 00:00:00 2001 From: benedom <> Date: Tue, 16 Apr 2024 10:51:16 +0200 Subject: Adjusted demo application to include all configuration options --- Demo/SwiftyCropDemo/ShapeButton.swift | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 Demo/SwiftyCropDemo/ShapeButton.swift (limited to 'Demo/SwiftyCropDemo/ShapeButton.swift') diff --git a/Demo/SwiftyCropDemo/ShapeButton.swift b/Demo/SwiftyCropDemo/ShapeButton.swift deleted file mode 100644 index c7aae9f..0000000 --- a/Demo/SwiftyCropDemo/ShapeButton.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// ShapeButton.swift -// SwiftyCropDemo -// -// Created by Leonid Zolotarev on 1/24/24. -// - -import SwiftUI -import SwiftyCrop - -struct ShapeButton: View { - let title: String - let shape: MaskShape - @Binding var selection: MaskShape - - var body: some View { - Button { - selection = shape - } label: { - LongText(title: title) - } - .foregroundColor(selection == shape ? .accentColor : .secondary) - } -} - -#Preview { - ShapeButton( - title: "title", - shape: .circle, - selection: .constant(.circle) - ) -} -- cgit v1.2.3