能看更详细的代码\xef\xbc\x9f
\n@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)\n@frozen public struct HStack<Content> : View where Content : View {\n\n /// Creates a horizontal stack with the given spacing and vertical alignment.\n ///\n /// - Parameters:\n /// - alignment: The guide for aligning the subviews in this stack. This\n /// guide has the same vertical screen coordinate for every child view.\n /// - spacing: The distance between adjacent subviews, or `nil` if you\n /// want the stack to choose a default distance for each pair of\n /// subviews.\n /// - content: A view builder that creates the content of this stack.\n @inlinable public init(alignment: VerticalAlignment = .center, spacing: CGFloat? = nil, @ViewBuilder content: () -> Content)\n\n /// The type of view representing the body of this view.\n ///\n /// When you create a custom view, Swift infers this type from your\n /// implementation of the required `body` property.\n public typealias Body = Never\n}\nRun Code Online (Sandbox Code Playgroud)\n
Aym*_*rki 12
SwiftUI 未包含在开源 Swift 项目中,但有一个正在进行的项目来构建 Apple SwiftUI DSL 的开源实现。 https://github.com/Cosmo/OpenSwiftUI
| 归档时间: |
|
| 查看次数: |
7283 次 |
| 最近记录: |