# Solutions for: Frame Modifier

![](https://5317963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F598GXhEFvy2PX7VpZjCw%2Fuploads%2FqCPebEZ739Ht0ywhqyXl%2Fimage.png?alt=media\&token=42794ac3-d5ba-44d8-ab47-291f1f276c29)

![](https://5317963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F598GXhEFvy2PX7VpZjCw%2Fuploads%2F30ixJO0lBKCASgMhfcJe%2Fimage.png?alt=media\&token=bb24683b-4eb2-4916-a27e-9202e52b87ec)

Source: <https://link.medium.com/AOQ7KUpCnub>

...

### Credit card shape

```swift
struct ContentView: View {
    var body: some View {
        LinearGradient(gradient: Gradient(colors: [.yellow, .red]), startPoint: .topLeading, endPoint: .bottomTrailing)
            .frame(width: 300, height: 200)
            .clipShape(RoundedRectangle(cornerRadius: 10))
    }
}
```
