Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gtokman committed May 2, 2021
1 parent 0c64caf commit 8214c62
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Documentation/Reference/ExtensionKit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
- [dprint(__)](methods/dprint(__).md)
- [sleep(duration_)](methods/sleep(duration_).md)

This file was generated by [SourceDocs](https://github.com/eneko/SourceDocs) on 2021-05-01 15:55:13 +0000
This file was generated by [SourceDocs](https://github.com/eneko/SourceDocs) on 2021-05-02 15:19:39 +0000
45 changes: 38 additions & 7 deletions Documentation/Reference/ExtensionKit/extensions/View.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ func fillHeight() -> some View
Fill parent's height
- Returns: view

### `flexibleFill(_:alignment:)`
### `fillFlexible(_:alignment:)`

```swift
public func flexibleFill(
func fillFlexible(
_ flexibleAxis: Axis.Set = [.horizontal, .vertical],
alignment: Alignment = .center
) -> some View
Expand Down Expand Up @@ -109,10 +109,9 @@ If a condition is true, transform and return a new view
### `ifLet(_:_:)`

```swift
func `ifLet`<TrueContent: View, Optional>(
_ value: Optional?,
_ modifier: (Self, Optional
) -> TrueContent) -> some View
func `ifLet`<Content: View, Value>(
_ value: Value?,
_ modifier: (Self, Value) -> Content) -> some View
```

Conditionally apply a modifier to the view based on if the optional exists
Expand Down Expand Up @@ -598,4 +597,36 @@ Subscribe and blind optional ouput to View property
| Name | Description |
| ---- | ----------- |
| publisher | publisher |
| binding | binding |
| binding | binding |

### `scrollOffsetX(_:)`

```swift
func scrollOffsetX(_ offsetX: Binding<CGFloat>) -> some View
```

Get the scroll view content offset X
- Parameter offsetX: Binding for offset
- Returns: View

#### Parameters

| Name | Description |
| ---- | ----------- |
| offsetX | Binding for offset |

### `scrollOffsetY(_:)`

```swift
func scrollOffsetY(_ offsetY: Binding<CGFloat>) -> some View
```

Get the scroll view content offset Y
- Parameter offsetY: Binding for offset
- Returns: View

#### Parameters

| Name | Description |
| ---- | ----------- |
| offsetY | Binding for offset |

0 comments on commit 8214c62

Please sign in to comment.