This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "Ambiguous use of 'init" compilation error
- Loading branch information
1 parent
9ffb948
commit b60360b
Showing
58 changed files
with
258 additions
and
1,545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
Documentation/Reference/ColibriComponents/extensions/Array.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,21 @@ | ||
**EXTENSION** | ||
|
||
# `Array` | ||
```swift | ||
extension Array: Bindable | ||
``` | ||
|
||
## Properties | ||
### `body` | ||
|
||
```swift | ||
public var body: some View | ||
``` | ||
|
||
The toolbar. | ||
|
||
## Methods | ||
### `checkIndex(_:)` | ||
|
||
```swift | ||
private func checkIndex(_ index: Int) -> Bool | ||
``` | ||
|
||
Check if a given index is valid for the array. | ||
- Parameter index: The index to test. | ||
- Returns: Return whether the index is valid or not. | ||
|
||
#### Parameters | ||
|
||
| Name | Description | | ||
| ---- | ----------- | | ||
| index | The index to test. | | ||
|
||
### `getIndex(id:)` | ||
|
||
```swift | ||
private func getIndex(id: Element.ID?) -> Int? | ||
``` | ||
|
||
Get the index of an element with a specified identifier. | ||
- Parameter id: The element's identifier. | ||
- Returns: The index of the element. | ||
|
||
#### Parameters | ||
|
||
| Name | Description | | ||
| ---- | ----------- | | ||
| id | The element’s identifier. | |
13 changes: 0 additions & 13 deletions
13
Documentation/Reference/ColibriComponents/extensions/Bindable.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,10 @@ | ||
**EXTENSION** | ||
|
||
# `Bindable` | ||
```swift | ||
extension Bindable | ||
``` | ||
|
||
## Methods | ||
### `binding(_:)` | ||
|
||
```swift | ||
public func binding(_ set: @escaping (Self) -> Void) -> Binding<Self> | ||
``` | ||
|
||
Convert a bindable value to a binding with a custom set clause. | ||
- Parameter set: The function with the value as a parameter used as the set of the binding. | ||
- Returns: The binding with the custom set behaviour. | ||
|
||
#### Parameters | ||
|
||
| Name | Description | | ||
| ---- | ----------- | | ||
| set | The function with the value as a parameter used as the set of the binding. | |
Oops, something went wrong.