Skip to content

Commit

Permalink
Deploying to site from @ b0e57a4 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
veyndan committed Nov 30, 2023
1 parent 7c2d3b9 commit 38fe726
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 66 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,9 @@ <h1 class="cover"><span>UIView</span><wbr><span><span>Children</span></span></h1
<div class="content sourceset-dependent-content" data-active="" data-togglable=":redwood-widget:dokkaHtmlPartial/iosMain"><div class="symbol monospace"><span class="token keyword">constructor</span><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">parent<span class="token operator">: </span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">insert<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token punctuation">, </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator"> = </span>when (parent) {
is UIStackView -&gt; { view, index -&gt; parent.insertArrangedSubview(view, index.convert()) }
else -&gt; { view, index -&gt; parent.insertSubview(view, index.convert&lt;NSInteger&gt;()) }
}<span class="token punctuation">, </span></span><span class="parameter ">remove<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span>index<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">, </span><span class="token keyword"></span>count<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a><span class="token operator">&lt;</span><span class="token keyword"></span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token operator">&gt;</span><span class="token operator"> = </span>{ index, count -&gt;
// Per the docs, these properties are read-only copies we can use stable indexing into.
val subviews = when (parent) {
is UIStackView -&gt; parent.typedArrangedSubviews
else -&gt; parent.typedSubviews
}
Array(count) { offset -&gt;
subviews[index + offset].also(UIView::removeFromSuperview)
}
}<span class="token punctuation">, </span></span><span class="parameter ">remove<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span>index<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">, </span><span class="token keyword"></span>count<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a><span class="token operator">&lt;</span><span class="token keyword"></span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token operator">&gt;</span><span class="token operator"> = </span>when (parent) {
is UIStackView -&gt; { index, count -&gt; parent.typedArrangedSubviews.remove(index, count) }
else -&gt; { index, count -&gt; parent.typedSubviews.remove(index, count) }
}</span></span><span class="token punctuation">)</span></div></div> </div>
</div>
<div class="footer">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,9 @@ <h1 class="cover"><span>UIView</span><wbr><span><span>Children</span></span></h1
<div class="content sourceset-dependent-content" data-active="" data-togglable=":redwood-widget:dokkaHtmlPartial/iosMain"><div class="symbol monospace"><span class="token keyword">class </span><a href="index.html">UIViewChildren</a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">parent<span class="token operator">: </span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">insert<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token punctuation">, </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator"> = </span>when (parent) {
is UIStackView -&gt; { view, index -&gt; parent.insertArrangedSubview(view, index.convert()) }
else -&gt; { view, index -&gt; parent.insertSubview(view, index.convert&lt;NSInteger&gt;()) }
}<span class="token punctuation">, </span></span><span class="parameter ">remove<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span>index<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">, </span><span class="token keyword"></span>count<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a><span class="token operator">&lt;</span><span class="token keyword"></span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token operator">&gt;</span><span class="token operator"> = </span>{ index, count -&gt;
// Per the docs, these properties are read-only copies we can use stable indexing into.
val subviews = when (parent) {
is UIStackView -&gt; parent.typedArrangedSubviews
else -&gt; parent.typedSubviews
}
Array(count) { offset -&gt;
subviews[index + offset].also(UIView::removeFromSuperview)
}
}<span class="token punctuation">, </span></span><span class="parameter ">remove<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span>index<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">, </span><span class="token keyword"></span>count<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a><span class="token operator">&lt;</span><span class="token keyword"></span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token operator">&gt;</span><span class="token operator"> = </span>when (parent) {
is UIStackView -&gt; { index, count -&gt; parent.typedArrangedSubviews.remove(index, count) }
else -&gt; { index, count -&gt; parent.typedSubviews.remove(index, count) }
}</span></span><span class="token punctuation">)</span></div></div> </div>
</div>
<div class="tabbedcontent">
Expand All @@ -98,15 +92,9 @@ <h2 class="">Constructors</h2>
<div class="content sourceset-dependent-content" data-active="" data-togglable=":redwood-widget:dokkaHtmlPartial/iosMain"><div class="symbol monospace"><span class="token keyword">constructor</span><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">parent<span class="token operator">: </span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">insert<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token punctuation">, </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator"> = </span>when (parent) {
is UIStackView -&gt; { view, index -&gt; parent.insertArrangedSubview(view, index.convert()) }
else -&gt; { view, index -&gt; parent.insertSubview(view, index.convert&lt;NSInteger&gt;()) }
}<span class="token punctuation">, </span></span><span class="parameter ">remove<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span>index<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">, </span><span class="token keyword"></span>count<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a><span class="token operator">&lt;</span><span class="token keyword"></span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token operator">&gt;</span><span class="token operator"> = </span>{ index, count -&gt;
// Per the docs, these properties are read-only copies we can use stable indexing into.
val subviews = when (parent) {
is UIStackView -&gt; parent.typedArrangedSubviews
else -&gt; parent.typedSubviews
}
Array(count) { offset -&gt;
subviews[index + offset].also(UIView::removeFromSuperview)
}
}<span class="token punctuation">, </span></span><span class="parameter ">remove<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span>index<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">, </span><span class="token keyword"></span>count<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a><span class="token operator">&lt;</span><span class="token keyword"></span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token operator">&gt;</span><span class="token operator"> = </span>when (parent) {
is UIStackView -&gt; { index, count -&gt; parent.typedArrangedSubviews.remove(index, count) }
else -&gt; { index, count -&gt; parent.typedSubviews.remove(index, count) }
}</span></span><span class="token punctuation">)</span></div></div> </div>
</div>
</div>
Expand Down
12 changes: 3 additions & 9 deletions latest/docs/redwood-widget/app.cash.redwood.widget/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,9 @@ <h2 class="">Types</h2>
<div class="content sourceset-dependent-content" data-active="" data-togglable=":redwood-widget:dokkaHtmlPartial/iosMain"><div class="symbol monospace"><span class="token keyword">class </span><a href="-u-i-view-children/index.html">UIViewChildren</a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">parent<span class="token operator">: </span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token punctuation">, </span></span><span class="parameter ">insert<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token punctuation">, </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator"> = </span>when (parent) {
is UIStackView -&gt; { view, index -&gt; parent.insertArrangedSubview(view, index.convert()) }
else -&gt; { view, index -&gt; parent.insertSubview(view, index.convert&lt;NSInteger&gt;()) }
}<span class="token punctuation">, </span></span><span class="parameter ">remove<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span>index<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">, </span><span class="token keyword"></span>count<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a><span class="token operator">&lt;</span><span class="token keyword"></span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token operator">&gt;</span><span class="token operator"> = </span>{ index, count -&gt;
// Per the docs, these properties are read-only copies we can use stable indexing into.
val subviews = when (parent) {
is UIStackView -&gt; parent.typedArrangedSubviews
else -&gt; parent.typedSubviews
}
Array(count) { offset -&gt;
subviews[index + offset].also(UIView::removeFromSuperview)
}
}<span class="token punctuation">, </span></span><span class="parameter ">remove<span class="token operator">: </span><span class="token punctuation">(</span><span class="token keyword"></span>index<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">, </span><span class="token keyword"></span>count<span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><span class="token punctuation">)</span><span class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a><span class="token operator">&lt;</span><span class="token keyword"></span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/">&lt;Error class: unknown class&gt;</span><span class="token operator">&gt;</span><span class="token operator"> = </span>when (parent) {
is UIStackView -&gt; { index, count -&gt; parent.typedArrangedSubviews.remove(index, count) }
else -&gt; { index, count -&gt; parent.typedSubviews.remove(index, count) }
}</span></span><span class="token punctuation">)</span></div></div> </div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html class="no-js">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>Undefined</title>
<title>UNDEFINED</title>
<link href="../../../../images/logo-icon.svg" rel="icon" type="image/svg"> <script>var pathToRoot = "../../../../";</script>
<script>document.documentElement.classList.replace("no-js","js");</script>
<script>const storage = localStorage.getItem("dokka-dark-mode")
Expand Down Expand Up @@ -58,12 +58,12 @@
<div class="sidebar--inner" id="sideMenu"></div>
</div>
<div id="main">
<div class="main-content" data-page-type="member" id="content" pageids="redwood-yoga::app.cash.redwood.yoga/Size.Companion/Undefined/#/PointingToDeclaration//920721172">
<div class="breadcrumbs"><a href="../../../index.html">redwood-yoga</a><span class="delimiter">/</span><a href="../../index.html">app.cash.redwood.yoga</a><span class="delimiter">/</span><a href="../index.html">Size</a><span class="delimiter">/</span><a href="index.html">Companion</a><span class="delimiter">/</span><span class="current">Undefined</span></div>
<div class="main-content" data-page-type="member" id="content" pageids="redwood-yoga::app.cash.redwood.yoga/Size.Companion/UNDEFINED/#/PointingToDeclaration//920721172">
<div class="breadcrumbs"><a href="../../../index.html">redwood-yoga</a><span class="delimiter">/</span><a href="../../index.html">app.cash.redwood.yoga</a><span class="delimiter">/</span><a href="../index.html">Size</a><span class="delimiter">/</span><a href="index.html">Companion</a><span class="delimiter">/</span><span class="current">UNDEFINED</span></div>
<div class="cover ">
<h1 class="cover"><span><span>Undefined</span></span></h1>
<h1 class="cover"><span><span>UNDEFINED</span></span></h1>
</div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":redwood-yoga:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">const </span><span class="token keyword">val </span><a href="-undefined.html">Undefined</a><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html">Float</a></div></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":redwood-yoga:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">const </span><span class="token keyword">val </span><a href="-u-n-d-e-f-i-n-e-d.html">UNDEFINED</a><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html">Float</a></div></div></div>
</div>
<div class="footer">
<span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2023 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span>
Expand Down
Loading

0 comments on commit 38fe726

Please sign in to comment.