Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vinhnx authored Dec 18, 2020
1 parent 01c0167 commit 102e261
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,42 @@ struct ContentView: View {

---

### Customization

To customize loading view color, use `color` initializer:

```swift
Laden.CircleOutlineLoadingView(color: .red)
```

Available customizations:

```swift
/// Loading view protocol that define default configurations.
public protocol LoadingAnimatable: View {
/// Whether this loading view is animating.
var isAnimating: Bool { get }

/// Default color for loading view.
var color: Color { get }

/// The default size for loading view.
var size: CGSize { get set }

/// Default stroke line width for loading bar.
var strokeLineWidth: CGFloat { get }
}
```

---

### Acknowledgement

idea 💡

+ [AppCoda's SwiftUI animation](https://www.appcoda.com/swiftui-animation-basics-building-a-loading-indicator/): for basic building block.
+ [ActivityIndicators](https://github.com/sketch204/ActivityIndicators): for idea how to build and publish a custom SwiftUI control package.

---

### Help, feedback or suggestions?
Expand Down

0 comments on commit 102e261

Please sign in to comment.