Skip to content

Commit

Permalink
updated readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
aslanyanhaik committed May 7, 2020
1 parent a95fc12 commit 25d734d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ let coder = RCCoder()
}
```

### Appearance
## Appearance

You can change the appearance like this

Expand All @@ -100,10 +100,14 @@ image.size = 300
image.gradientType = .linear(angle: CGFloat.pi)
image.tintColors = [.red, .black]
```
If image is on dark background you should change scanning mode to `darkBackground`

⚠️ When choosing colors or transparent background you should keep in mind that decoder will detect the code on light background with dark colors ⚠️
```swift
let coder = RCCoder()
coder.scanningMode = .darkBackground
```

### Advanced
## Advanced coding configuration

You can provide custom coding configuration in order to encode long text by reducing number of characters

Expand Down

0 comments on commit 25d734d

Please sign in to comment.