Skip to content

Commit

Permalink
Merge pull request #65 from SwiftOnTap/el-docs
Browse files Browse the repository at this point in the history
gif updates
  • Loading branch information
blsage authored Apr 2, 2021
2 parents baeadda + e706f40 commit 25e8c75
Show file tree
Hide file tree
Showing 16 changed files with 39 additions and 18 deletions.
57 changes: 39 additions & 18 deletions SwiftUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5907,7 +5907,7 @@ extension Button where Label == PrimitiveButtonStyleConfiguration.Label {
/// }
/// }
///
/// ![](buttonstyle-redborder.png)
/// ![](button-init-red-outline-ex.gif)
///
/// - Parameter configuration: A configuration for a style with a custom
/// appearance and custom interaction behavior.
Expand Down Expand Up @@ -6388,7 +6388,7 @@ extension Circle : InsettableShape {
/// }
/// ```
///
/// ![](progress-view-style-ex2.png)
/// ![](progress-spinnner-orange-ex.gif)
///
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
public struct CircularProgressViewStyle : ProgressViewStyle {
Expand Down Expand Up @@ -6429,7 +6429,7 @@ public struct CircularProgressViewStyle : ProgressViewStyle {
/// }
/// ```
///
/// ![](progress-view-style-ex2.png)
/// ![](progress-spinnner-orange-ex.gif)
///
public init(tint: Color) { }

Expand Down Expand Up @@ -30826,7 +30826,7 @@ public struct PrimitiveButtonStyleConfiguration {
/// }
///
///
/// ![](dark-blue-shadowed-progress-view-ex.png)
/// ![](dark-blue-shadowed-progress-view-ex.gif)
///
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
public struct ProgressView<Label, CurrentValueLabel> : View where Label : View, CurrentValueLabel : View {
Expand Down Expand Up @@ -30857,7 +30857,7 @@ extension ProgressView where CurrentValueLabel == EmptyView {
/// }
/// ```
///
/// ![](progress-view-init-plain.png)
/// ![](progress-spinner-gray.gif)
///
public init() where Label == EmptyView { }

Expand All @@ -30873,7 +30873,7 @@ extension ProgressView where CurrentValueLabel == EmptyView {
/// }
/// ```
///
/// ![](progress-view-init-label.png)
/// ![](progress-spinner-runner.gif)
///
/// - Parameters:
/// - label: A view builder that creates a view that describes the task
Expand All @@ -30898,7 +30898,7 @@ extension ProgressView where CurrentValueLabel == EmptyView {
/// }
/// ```
///
/// ![](progress-view-init-517e1.png)
/// ![](progress-spinner-runner.gif)
///
/// - Parameters:
/// - titleKey: The key for the progress view's localized title that
Expand Down Expand Up @@ -30926,7 +30926,7 @@ extension ProgressView where CurrentValueLabel == EmptyView {
/// }
/// ```
///
/// ![](progress-view-init-517e1.png)
/// ![](progress-spinner-runner.gif)
///
public init<S>(_ title: S) where Label == Text, S : StringProtocol { }
}
Expand Down Expand Up @@ -31220,7 +31220,7 @@ extension ProgressView {
/// }
/// }
///
/// ![](dark-blue-shadowed-progress-view-ex.png)
/// ![](dark-blue-shadowed-progress-view-ex.gif)
///
///
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
Expand Down Expand Up @@ -31268,7 +31268,7 @@ extension ProgressViewStyle {
/// }
/// }
///
/// ![](dark-blue-shadowed-progress-view-ex.png)
/// ![](dark-blue-shadowed-progress-view-ex.gif)
///
/// - Parameter configuration: The properties of the progress view, such as
/// its preferred progress type.
Expand Down Expand Up @@ -31357,7 +31357,7 @@ extension ProgressViewStyle {
/// }
/// }
///
/// ![](dark-blue-shadowed-progress-view-ex.png)
/// ![](dark-blue-shadowed-progress-view-ex.gif)
///
@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
public struct ProgressViewStyleConfiguration {
Expand Down Expand Up @@ -34366,12 +34366,25 @@ extension Scene {
/// }
/// .onChange(of: scenePhase) { newScenePhase in
/// if newScenePhase != .active {
/// message = "Come back! 👋"
/// DispatchQueue.main.async {
/// message = "Come back! 👋"
/// }
/// }
/// }
/// }
/// }
///
/// Then you can add this ``Scene`` to your ``App``:
///
/// @main
/// struct MyApp: App {
/// var body: some Scene {
/// CustomScene()
/// }
/// }
///
/// Now when you leave the app via multitasking, you get a message:
///
/// - Parameters:
/// - value: The value to watch for changes.
/// - action: A function to run when the value changes.
Expand Down Expand Up @@ -35869,6 +35882,8 @@ public struct ScrollView<Content> : View where Content : View {
/// }
/// ```
///
/// ![](scroll-view-content-ex.gif)
///
/// The `content` is usually a ``VStack`` or an ``HStack``, but it
/// can be any ``View`` that requires scrolling.
public var content: Content
Expand Down Expand Up @@ -45056,7 +45071,7 @@ extension View {
/// }
/// }
///
/// ![](sheet-on-dismiss-ex.gif)
/// ![](sheet-i-od-c-ex.gif)
///
/// - Parameters:
/// - item: A binding value passed to `content` to build the sheet. The sheet will show
Expand Down Expand Up @@ -45091,7 +45106,7 @@ extension View {
/// }
/// }
///
/// ![](sheet-is-presented-ex.gif)
/// ![](sheet-ip-od-c-ex.gif)
///
/// - Parameters:
/// - isPresented: A binding to whether the sheet is presented.
Expand Down Expand Up @@ -45158,7 +45173,7 @@ extension View {
/// }
/// }
///
/// ![](full-screen-on-dismiss-ex.gif)
/// ![](full-screen-cover-i-od-c-ex.gif)
///
/// - Parameters:
/// - item: A binding value passed to `content` to build the full screen cover. The full screen
Expand Down Expand Up @@ -45206,7 +45221,7 @@ extension View {
/// }
/// }
///
/// ![](full-screen-is-presented-ex.gif)
/// ![](full-screen-cover-ip-od-c-ex.gif)
///
/// - Parameters:
/// - isPresented: A binding to whether the modal view is presented.
Expand Down Expand Up @@ -45807,6 +45822,8 @@ extension View {
/// }
/// ```
///
/// ![](view-on-dissapear-perform-ex.gif)
///
/// - Parameter action: The action to perform. If `action` is `nil`, the
/// call has no effect.
///
Expand Down Expand Up @@ -45996,6 +46013,8 @@ extension View {
/// }
/// ```
///
/// ![](view-menu-style-pdf-ex.gif)
///
/// - Parameter style: Your desired ``MenuStyle``.
/// - Returns: A view with styled menus.
public func menuStyle<S>(_ style: S) -> some View where S : MenuStyle { }
Expand Down Expand Up @@ -46824,8 +46843,8 @@ extension View {
/// style, but there are 7 styles available. See ``PickerStyle`` for more.
///
/// ```
/// enum MyFruit {
/// case banana = ""Banana 🍌🍌"
/// enum MyFruit: String {
/// case banana = "Banana 🍌🍌"
/// case apple = "Apple 🍎🍎"
//// case peach = "Peach 🍑🍑"
/// }
Expand Down Expand Up @@ -50305,6 +50324,8 @@ extension View {
/// }
/// ```
///
/// ![](nav-bar-bbh-ex.gif)
///
/// - Parameter hidesBackButton: A Boolean value that indicates whether to
/// hide the back button.
@available(macOS, unavailable)
Expand Down
Binary file added images/button-init-red-outline-ex.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/dark-blue-shadowed-progress-view-ex.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/doub-column-nav-view-style-ex1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/full-screen-cover-i-od-c-ex.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/full-screen-cover-ip-od-c-ex.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/nav-bar-bbh-ex.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/progress-spinner-gray.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/progress-spinner-runner.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/progress-spinnner-orange-ex.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/scroll-view-content-ex.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sheet-i-od-c-ex.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sheet-ip-od-c-ex.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tab-view-auto-ex1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/view-menu-style-pdf-ex.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/view-on-dissapear-perform-ex.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 25e8c75

Please sign in to comment.