初衷

作者: 水之飞亦 | 来源:发表于2019-10-23 22:08 被阅读0次
    • 为什么要单独写这个东西呢,其实本人是比较懒的一个人,不太喜欢写一些总结类的东西,而且自己的性格又是哪种,要写就要写的完整,写得满意的那种,所以一些学习过程中的碎片化的东西,就很难提起兴趣去记录。
    • 但是还是开了这个头,也是源于之前一直未完成的一个事情吧。最开始学习OC时,就想着要把所以UIKit,UIFoundation类都做个总结,那时用纸质笔记本做的,大概写了二分之一吧,很多不常用,用不到的类就没有写,而且写了的也不是很全,主要是技术有限啊。
    • 现在学习和总结SwiftUI,再提这个,也没有抱着全部保质保量完成的希望,毕竟这个SwiftUI,还不是很成熟,现在也不能完全普及,慢慢完善吧!
    • 计划呢是,实践代码加上属性和方法的说明和介绍,对比UIKit,也作为以后自己查阅和复习的一个记录!

    主要介绍下面几个方面的东西

    View 协议

    protocol View
    A type that represents a SwiftUI view.
    Creating and Combining Views
    This tutorial guides you through building Landmarks — an iOS app for discovering and sharing the places you love. You’ll start by building the view that shows a landmark’s details.
    Working with UI Controls
    In the Landmarks app, users can create a profile to express their personality. To give users the ability to change their profile, you’ll add an edit mode and design the preferences screen.

    Text 内容视图

    struct Text
    A view that displays one or more lines of read-only text.
    struct TextField
    A control that displays an editable text interface.
    struct SecureField
    A control into which the user securely enters private text.
    struct Font
    An environment-dependent font.

    Images 图片视图

    struct Image
    A view that displays an environment-dependent image.

    Buttons 按钮

    struct Button
    A control that performs an action when triggered.
    struct NavigationLink
    A button that triggers a navigation presentation when pressed.
    struct MenuButton
    A button that displays a menu containing a list of choices when pressed.
    struct EditButton
    A button that toggles the edit mode for the current edit scope.
    struct PasteButton
    A system button that triggers reading data from the pasteboard.

    Value Selectors 选择器

    struct Toggle
    A control that toggles between on and off states.
    struct Picker
    A control for selecting from a set of mutually exclusive values.
    struct DatePicker
    A control for selecting an absolute date.
    struct Slider
    A control for selecting a value from a bounded linear range of values.
    struct Stepper
    A control used to perform semantic increment and decrement actions.

    相关文章

      网友评论

          本文标题:初衷

          本文链接:https://www.haomeiwen.com/subject/lbjlvctx.html