diff options
author | benedom <> | 2024-04-16 10:51:16 +0200 |
---|---|---|
committer | benedom <> | 2024-04-16 11:00:59 +0200 |
commit | 5e4554272f1262120a643efb39ccdb890ae592fe (patch) | |
tree | b41eb7a0c5517a03d6937bb7c58cbb61ddb12920 /Demo/SwiftyCropDemo/ShapeButton.swift | |
parent | be22624ac4e3d15091aa4556f4f7bdf1ff2b65ad (diff) |
Adjusted demo application to include all configuration options
Diffstat (limited to 'Demo/SwiftyCropDemo/ShapeButton.swift')
-rw-r--r-- | Demo/SwiftyCropDemo/ShapeButton.swift | 32 |
1 files changed, 0 insertions, 32 deletions
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) - ) -} |