parent
14cf071be2
commit
f35b9003fe
12
README.md
12
README.md
|
@ -4,14 +4,14 @@ A standalone catalog viewer package that intelligently displays design component
|
||||||
|
|
||||||
### Sample code to display built-in components
|
### Sample code to display built-in components
|
||||||
|
|
||||||
A user can use built-in components like Iconography Category, Font Category, and Color Category to display icons, fonts, and colors respectively.
|
A user can use built-in components like Icon Category, Font Category, and Color Category to display icons, fonts, and colors respectively.
|
||||||
|
|
||||||
For example, a user can create an iconography category as follows:
|
For example, a user can create an icon category as follows:
|
||||||
|
|
||||||
```
|
```
|
||||||
enum IconographySample {
|
enum IconSample {
|
||||||
static var media: IconographyCategory {
|
static var media: IconCategory {
|
||||||
IconographyCategory(
|
IconCategory(
|
||||||
name: "Media",
|
name: "Media",
|
||||||
models: [
|
models: [
|
||||||
.init(
|
.init(
|
||||||
|
@ -101,7 +101,7 @@ We can create a category which contains other categories.
|
||||||
name: "Foundational",
|
name: "Foundational",
|
||||||
subcategories: [
|
subcategories: [
|
||||||
ColorSample.category,
|
ColorSample.category,
|
||||||
IconographySample.category,
|
IconSample.category,
|
||||||
FontSample.category
|
FontSample.category
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue