Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 806 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 806 Bytes

Chris's SwiftUI Claymorphic Kit

Contains a view modifer, shape & button style to draw Claymorphism Style UI's in SwiftUI

import SwiftUI
import ClaymorphicKit

struct MyView: View {
  
  var body: some View {
    Button {
      print("pressed")
    } label: {
      Text("Hello, Earth!")
    }
    .frame(width: 140, height: 56)
    .buttonStyle(ClaymorphicButtonStyle(color: .blue,
                                        radius: 20,
                                        inflation: 0.5,
                                        animation: Animation.wiggleJiggle))
  }
  
}
Before After
Before After