vitamin ios
v0.13.0
重要的
当前版本的维生素将不再发展,并且从现在开始只接受错误修复。更多详细信息。


iOS和iPados应用程序的十项全能设计系统库
网站
十项全能设计系统是一个框架,可帮助我们的生态系统设计和发展一致和质量的体验。
对于其数字部分,它被称为维生素。
将维生素添加到包装的依赖项数组中:
dependencies: [
. package ( url : " https://github.com/Decathlon/vitamin-ios.git " , . exact ( " 0.13.0 " ) ) ,
// Any other dependencies...
] ,然后,将维生素添加到依赖维生素的任何靶标的依赖项阵列中。
对于SwiftUI :
. target ( name : " YourSwiftUITarget " ,
dependencies : [
. product ( name : " VitaminSwiftUI " , package : " vitamin-ios " ) ,
// Any other dependencies...
] ) ,对于UIKit :
. target ( name : " YourUIKitTarget " ,
dependencies : [
. product ( name : " Vitamin " , package : " vitamin-ios " ) ,
// Any other dependencies...
] ) ,一个完整的示例:
let package = Package (
name : " YourPackage " ,
products : [
// Your products
] ,
dependencies : [
. package ( url : " https://github.com/Decathlon/vitamin-ios.git " , . exact ( " 0.13.0 " ) ) ,
// Any other dependencies...
] ,
targets : [
// Your target
. target ( name : " YourUIKitTarget " ,
dependencies : [
. product ( name : " Vitamin " , package : " vitamin-ios " ) ,
// Any other dependencies...
] ) ,
. target ( name : " YourSwiftUITarget " ,
dependencies : [
. product ( name : " VitaminSwiftUI " , package : " vitamin-ios " ) ,
// Any other dependencies...
] ) ,
]
) # for UIKitVersion
pod 'Vitamin' , '= 0.13.0'
# for SwiftUI version
pod 'VitaminSwiftUI' , = '0.13.0' 该库提供了两种类型的元素:基础和组件。
基础是维生素设计系统的核心砖块,组件是基于基础的高级元素。
可用以下基础:
| 元素 | 描述 | 文档 |
|---|---|---|
| 资产 | 设计系统中可用的图形资产集。 | Uikit Swiftui |
| 颜色 | 设计系统的语义和基础颜色。 | Uikit Swiftui |
| 图标 | 在设计系统中可用的一组图标。 | Uikit Swiftui |
| 辐射 | 适用于设计系统中任何视图的半径。 | Uikit Swiftui |
| 阴影 | 阴影适用于设计系统中的任何视图。 | Uikit Swiftui |
| 排版 | 设计系统中可用的文本样式。 | Uikit Swiftui |
可用以下组件:
| 成分 | 描述 | 文档 |
|---|---|---|
| 徽章 | 维生素设计系统的徽章。 | Uikit Swiftui |
| 按钮 | 维生素设计系统的不同按钮样式。 | Uikit Swiftui |
| 进度栏 | 维生素设计系统的不同进度栏样式。 | Uikit |
| 分段 | 从维生素设计系统分段控制。 | Uikit |
| Snackbar | 维生素设计系统的Snackbar。 | Uikit |
| 转变 | 从维生素设计系统切换。 | Uikit |
| 标签 | 维生素设计系统的标签。 | Uikit |
| Textfield | 维生素设计系统的不同文本字段样式。 | Uikit Swiftui |
感谢您参与这些维生素-IOS图书馆的贡献者(甚至在开源之前) 。 ?
还要感谢您的混音图标,因为Vitamix Icons是基于其开源图标库的官方Decathlon图标库(混音设计©2020)。该原始库在许可证Apache 2.0下,已由DeCathlon修改。了解更多。
Copyright 2021 Decathlon.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.