point to the swiftui branch

This commit is contained in:
Yonat Sharon 2019-10-13 10:11:29 +03:00
parent d4c9aeb84a
commit ac80294d53
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,11 @@ batteryView.lowThreshold = 25 // battery fill becomes red if level is below this
batteryView.gradientThreshold = 50 // battery fill gradually changes from green to red below this threshold batteryView.gradientThreshold = 50 // battery fill gradually changes from green to red below this threshold
``` ```
### SwiftUI
Use `BatteryShape` from the [swiftui branch](https://github.com/yonat/BatteryView/tree/swiftui).
## Changing Appearance ## Changing Appearance
The properties below can be set in Interface Builder, in code, or through a UIAppearance proxy (e.g., `BatteryView.appearance().borderColor = .gray`). The properties below can be set in Interface Builder, in code, or through a UIAppearance proxy (e.g., `BatteryView.appearance().borderColor = .gray`).