Skip to content

Commit

Permalink
readme: misc
Browse files Browse the repository at this point in the history
  • Loading branch information
reez authored Aug 25, 2023
1 parent 0091e13 commit 08b30d5
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# WalletUI

WalletUI is an iOS implementation of [Bitcoin Wallet UI Kit](https://github.com/GBKS/bitcoin-wallet-ui-kit).
WalletUI is a native iOS implementation of [Bitcoin Wallet UI Kit](https://github.com/GBKS/bitcoin-wallet-ui-kit).

*Both WalletUI and its reference Bitcoin Wallet UI Kit are Work In Progress.*

Expand All @@ -13,7 +13,7 @@ WalletUI is an iOS implementation of [Bitcoin Wallet UI Kit](https://github.com/

## What's Included

The design system in the kit includes the basics:
The design system in WalletUI includes:

- Colors
- Button styles
Expand Down Expand Up @@ -59,8 +59,13 @@ label.textColor = .bitcoinOrange

### Button Styles

Five button styles are implemented in SwiftUI; BitcoinCapsuleFilled, BitcoinFilled, BitcoinCapsuleOutlined, BitcoinOutlined, and BitcoinPlain.
They have a number of optional parameters, including: width, height, cornerRadius, tintColor, textColor, disabledFillColor and disabledTextColor depending on the type.
Three button styles (with a number of optional parameters) are implemented in SwiftUI:

- `BitcoinFilled`

- `BitcoinOutlined`

- `BitcoinPlain`

*SwiftUI*

Expand All @@ -69,25 +74,21 @@ Button("Filled button") {
print("Button pressed!")
}
.buttonStyle(BitcoinFilled())

Button("Outlined button") {
print("Button pressed!")
}
.buttonStyle(BitcoinOutlined())
```

### Text Styles

Ten text styles are implemented in SwiftUI; BitcoinTitle1 - BitcoinTitle5 and BitcoinBody1 - BitcoinBody5
Ten text styles are implemented in SwiftUI:

- `BitcoinTitle1` - `BitcoinTitle5`

- `BitcoinBody1` - `BitcoinBody5`

*SwiftUI*

```swift
Text("Title")
.textStyle(BitcoinTitle1())

Text("Body")
.textStyle(BitcoinBody1())
```

### Icons
Expand Down

0 comments on commit 08b30d5

Please sign in to comment.