Skip to content

Commit

Permalink
update ConcaveModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzukihashi committed Apr 29, 2020
1 parent f9f409b commit 17b461e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DemoApp/DemoApp/Views/Concave.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ struct Concave: View {
.neumorphismConcave(shapeType: .ellipse, color: nil)
.frame(width: 300, height: 100)


Capsule(style: .circular)
.fill(neumorphism.color)
.neumorphismConcave(shapeType: .capsule, color: nil)
.frame(width: 300, height: 100)
}
}
}
Expand Down
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,37 @@ let contentView = ContentView()

![Simple View Dark](https://lh3.googleusercontent.com/aowkfsM8DhHCYOjKVqf_k22EeHBLYzj1-xyP2BJ6ygUFhdhzqGXfKaQlccC5U7pgwVtHxd-5IIVeLDH3z4YmbhPHLzVGBHPMDOZcZND2lFCXSakb0-naUInKy29KDmbW1WkLmKKpvFvF-isE06qX6bih2O_kt7Q5_Svn0AldDriq82huLgESCZpqPtxWW6-PmEdS_32ordPB7Y_c88poyvJEW7EnYWU-cteCSeQKGpfXssodgmg7HcWOdGHiTWBM2oD9oP2QYtE13tBovvOpQV4RPYAbJVlA92HzeGEJR_jUB4-8jTbp4zuKZIF_iZCMLbHB6IJocitTZ_eWC9V-LP8kFE5SLFxGCLOYh_FcvrVjdvcKIFXGLgFOwmT6Svlt0bTwqLjVmKrSDt_x01jq_WDVZbSNkayAp6Hy1XWUMb9BpO5c_HsJj876PJX35-bQXcXkwLvUMbHlcqG8EoGJb_3LUuhMDAAXV26NoweDyhG6fLLKiA8_uPM_Wbjx9S42tp9qM4joLpb5YzqDuTCKt_BVE0Ke1cyuTSdqyhN4nDhgVsTApNOsr7wgHGl_VfyYCBw8U9LFsObvTvTb11LDud9CNCYiB870iLTPBf3LEgleHa_v2OGzMe5VSauG7sVaeySO_sbIDWKuGzBgN7wmx17mn8Da5H72io4EEpW67Pk2LxPNB75QGL6EqZdaN3ZV6XezedkuYsFkTmV9Id_ghuAhVUKDCMqAi26nUxKj2b2ZCa2edQ=w377-h677-no)


### NeumorphismConcave
```swift
Rectangle()
.fill(neumorphism.color)
.neumorphismConcave(shapeType: .rectangle, color: nil)
.frame(width: 256, height: 100)

RoundedRectangle(cornerRadius: 16)
.fill(neumorphism.color)
.neumorphismConcave(shapeType: .roundedRectangle(cornerRadius: 16), color: nil)
.frame(width: 256, height: 100)

Circle()
.fill(neumorphism.color)
.neumorphismConcave(shapeType: .circle, color: nil)
.frame(width: 150, height: 150)

Ellipse()
.fill(neumorphism.color)
.neumorphismConcave(shapeType: .ellipse, color: nil)
.frame(width: 300, height: 100)

Capsule(style: .circular)
.fill(neumorphism.color)
.neumorphismConcave(shapeType: .capsule, color: nil)
.frame(width: 300, height: 100)
```

![ConcaveViewList](https://lh3.googleusercontent.com/8qmkb6XSVTMdjJj3QM0rMZ7Pxa3Ox8JjtXwGebwCGFFUTx3ULB9g8bR1i1_rGBQ78VxLV38UzNJzVhDITefLh6_fDG2UO7Mp0FQEE8lGopVEug2WJYf3GeIhBTbIY1S_msOLNIOTpiX9ehdjC71d1fVaf4QvFHgTOYc9t4d2cPcraOzL0cHLHphc6WIpagw_KWBGFne5C2cY6J7mFa1gn0FtML_Bjc_JKBw4eX6U_4NUSnzA0EGGG1dzsrTHwklxpOx7DgQtEKqb06VYUOkSlxzlWJe-ZwoEwmd9ofodDYA8oWOovxALAy8RAd3njBQ42G-7aJXiyOjC822X-ixQ_Nsc8WCcq31TCnRBTQiQdUpZCOac33mxVDd-V-oafGZNDEwfyJMxf_z8cLk0-lS9Hjf0bgK5D29lCeoK3v-MnnejNToI_3VzIPeVttie9ionbbTNdkSiRmVVCURMVelBGgYieuw-t3XyfpMgRMPHqFb4ZzvPPdTfYmPN4D7OU92ObT7FzBpRWkTAQrqSMwzDMMC9pjuSlROESrbxV7EWSHBr5Z4JUhzgCYJFJWTgbDR9DPyCdILUWdL5I9Nck6SEAQemuffyURnGiTp88zWzxiXj6nJ0P5zqWFMijDp8ptdnwwaMXx9p_BFWOK9HEuh_x_oZ0qqOPTnckG66NqvaGoEVCtseziANZcDYMJC58i8XwT-7ZOwgiHhP4o-lFCH3AoaJNlKGX14TPghVj01AGTst2hByVkiCK9TA=w457-h830-no)

### NeumorphismButton

```swift
Expand Down

0 comments on commit 17b461e

Please sign in to comment.