Giter Site home page Giter Site logo

swiftuiviews's Introduction

SwiftUI 全部视图文档用例及解释

想学习 SwiftUI 但是英文文档读得头大?开发项目不知道 SwiftUI 的就能完成任务,还是需要回头用 UIKit?好像在某些地方看到过一个控件的用法,但是怎么也记不起来了?想解决这些问题,你就找对地方了!

本项目基于 SwiftUI 官方文档实例,对所有的 SwiftUI 控件视图的用例进行了总结。在对应的文件夹中总结了对应的组件,例如 Controls 文件夹中,就有目前所有的 25 个控件的常规用法总结。

对于每个控件,我们都尽量提供全面的用例,同时配合中文注释。同时,配合 SwiftUI 的预览功能,你可以一边看代码,一边对照到动态效果。

Contributing

欢迎大家纠正项目中可能出现的纰漏和问题,也欢迎大家补充控件的新用法~ 让我们一起把这个项目变得更加完善!

TODO

  • 添加控件视图 (25/25)
  • 添加布局视图 (10/10)
  • 添加颜色视图 (3/3)
  • 添加其他视图 (8/13)
  • 添加 macOS 例子

如果本项目给你带来了方便,不妨点个 star 再走~ 如果 README 中的图片无法加载,可能是因为 github 中的图片被墙了。你也可以看看这篇掘金博文了解相关的信息。

swiftuiviews's People

Contributors

weqopy avatar zhuzilin avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.