All Projects → fengzhihao123 → UI-Swift

fengzhihao123 / UI-Swift

Licence: other
swift搭建UI

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to UI-Swift

XUI
XUI makes modular, testable architectures for SwiftUI apps a breeze!
Stars: ✭ 100 (+233.33%)
Mutual labels:  swift-ui
Scout
Scout is a kotlin multiplatform application that allows users to search and save games to lists to be browsed later.
Stars: ✭ 28 (-6.67%)
Mutual labels:  swift-ui
Firefly
An iOS syntax highlighter based on Savanna Kit, Sourceful and originally Highlightr
Stars: ✭ 76 (+153.33%)
Mutual labels:  swift-ui
rss-button-for-safari
Safari web extension for news feed discovery of RSS, Atom, JSON Feed & RDF+RSS.
Stars: ✭ 16 (-46.67%)
Mutual labels:  swift-ui
aprenda-swift
Uma lista de conteúdos para você aprender Swift
Stars: ✭ 429 (+1330%)
Mutual labels:  swift-ui
redis-pro
redis-pro redis 桌面管理工具
Stars: ✭ 537 (+1690%)
Mutual labels:  swift-ui
SwiftUI-App
This swiftUI Demo is very simple & easy to understand. This swiftUI demo includes On-boarding screens, login screen, forgot password screen, sign up screen, home & logout.
Stars: ✭ 175 (+483.33%)
Mutual labels:  swift-ui
make-react-native-package
CLI tool for bootstrapping react-native packages with Kotlin & Swift & Typescript
Stars: ✭ 36 (+20%)
Mutual labels:  swift-ui
swiftui-app-icon-creator
Create iOS and macOS application icon in Xcode with SwiftUI
Stars: ✭ 58 (+93.33%)
Mutual labels:  swift-ui

Swift 搭建UI系列

intro

学习Swift也有一段时间了,通过这一段时间的学习既体验了Swift语言的强大也感受到了今天写的代码明天就不能用的惊悚,总体来说Swift还是充满了无限的可能性(甚至于能写后台的程序),而且以后应该也会越来越好(以后替代OC,毕竟Apple的亲儿子😑)。

学习的这一段时间从写个button都要google到现在能上手项目,学到了很多东西也踩了很多坑。开始学习Swift的时候上来就抱着Swift的Language Guide一顿猛啃,事实证明这是一种很愚蠢的做法,结果没坚持一周就放弃了,因为学习一门新的语言只看语法的话很乏味,没有成果的刺激很难坚持下来。所以我想写一个关于Swift搭建iOS的UI控件的系列,让初学者可以在享受成果的同时更好的学习Swift。

##Swift的快捷键

  • Color Literal

eg: 在你写let color = 代码的时候在后面写color会只能提示Color Literal ,这样可以直观的看到然后选择自己需要的颜色

  • Image Literal,用法同上

  • command+option+/:添加函数注释说明(此快捷键适用OC)

Request

  • Xcode:Xcode8
  • Swift:Swift3.0
  • simulator:iphone 7 plus

01 - UILabel

02 - UITextField

03 - UIPickView

04 - UIScrollView

05 - UITableView

06 - UICollectionView

07 - 扫描二维码

01 - UILabel

  • 高度自适应label
  • 斜体label

gif

02 - UITextField

  • 自定义带有placeholder的UITextView
  • 自定义跟随键盘移动的UITextField

gif

03 - UIPickView

  • 三级联动地址选择器

gif

04 - UIScrollView

  • 自动轮播图

gif

05 - UITableView

  • 左划删除
  • 全选、单选删除

gif

06 - UICollectionView

  • 瀑布流

gif

07 - 扫描二维码

参考链接

广告

大家如果敲完这几个项目,可以看一下我的这个项目。里面都是一些项目常用的功能。

License

UI-Swift is released under the MIT license. See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].