Skip to content

Commit

Permalink
Update README.md (#133)
Browse files Browse the repository at this point in the history
Added docs on the ShadowCardTrait, with the addition of shadowOffset().
  • Loading branch information
lwdupont authored Apr 14, 2019
1 parent 7a7589e commit e4681ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ The framework will then observe the isHidden variable so that whenever its value

#### `ShadowCardTrait`

The ShadowCardTrait protocol requires CardController to implement `shadowColor()`, `shadowRadius()` and `shadowOpacity()` methods.
The ShadowCardTrait protocol requires CardController to implement `shadowColor()`, `shadowRadius()`, `shadowOpacity()` and `shadowOffset() methods.

```swift
func shadowColor() -> CGColor {
Expand All @@ -259,6 +259,11 @@ The ShadowCardTrait protocol requires CardController to implement `shadowColor()
func shadowOpacity() -> Float {
return 1.0
}

func shadowOffset() -> CGSize {
return CGSize(width: 0, height: 5)
}

```

<p align="center">
Expand Down

0 comments on commit e4681ff

Please sign in to comment.