Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a457cf6345 | |||
| 1e7bc4ef06 | |||
| 11a688de71 | |||
| f1c2b9065f | |||
| 203c0f1582 | |||
| bb5ce92196 | |||
| 8094e6a0fc | |||
| 349029fbc3 | |||
| 496ee1c177 | |||
| 444ad0cfaa | |||
| fe2027486b | |||
| f9cc696c83 | |||
| 7e96a251d7 | |||
| 8c9f02785d | |||
| bbe3a16e1a |
@@ -1 +1 @@
|
||||
github "ra1028/DifferenceKit" ~> 1.1
|
||||
github "ra1028/DifferenceKit" ~> 1.2
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
github "ra1028/DifferenceKit" "1.1.4"
|
||||
github "ra1028/DifferenceKit" "1.2.0"
|
||||
|
||||
Vendored
+1
-1
Submodule Carthage/Checkouts/DifferenceKit updated: bf0488b468...62745d7780
@@ -49,7 +49,7 @@ final class MountainsViewController: NSViewController {
|
||||
.filter { $0.contains(filter) }
|
||||
.sorted { $0.name < $1.name }
|
||||
|
||||
let snapshot = DiffableDataSourceSnapshot<Section, Mountain>()
|
||||
var snapshot = DiffableDataSourceSnapshot<Section, Mountain>()
|
||||
snapshot.appendSections([.main])
|
||||
snapshot.appendItems(mountains)
|
||||
dataSource.apply(snapshot)
|
||||
|
||||
+2
-2
@@ -66,7 +66,7 @@ GEM
|
||||
sassc (~> 2.1)
|
||||
sqlite3 (~> 1.3)
|
||||
xcinvoke (~> 0.3.0)
|
||||
json (2.2.0)
|
||||
json (2.3.1)
|
||||
liferaft (0.0.6)
|
||||
minitest (5.13.0)
|
||||
molinillo (0.6.6)
|
||||
@@ -75,7 +75,7 @@ GEM
|
||||
nap (1.1.0)
|
||||
netrc (0.11.0)
|
||||
open4 (1.3.4)
|
||||
redcarpet (3.5.0)
|
||||
redcarpet (3.5.1)
|
||||
rouge (3.13.0)
|
||||
ruby-macho (1.4.0)
|
||||
sassc (2.2.1)
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
"repositoryURL": "https://github.com/ra1028/DifferenceKit.git",
|
||||
"state": {
|
||||
"branch": null,
|
||||
"revision": "4eb31f8e85e4cb13732f9664d6e01e507cd592a0",
|
||||
"version": "1.1.3"
|
||||
"revision": "62745d7780deef4a023a792a1f8f763ec7bf9705",
|
||||
"version": "1.2.0"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ let package = Package(
|
||||
.library(name: "DiffableDataSources", targets: ["DiffableDataSources"])
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/ra1028/DifferenceKit.git", .upToNextMinor(from: "1.1.0"))
|
||||
.package(url: "https://github.com/ra1028/DifferenceKit.git", .upToNextMinor(from: "1.2.0"))
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
|
||||
@@ -91,7 +91,7 @@ $ open DiffableDataSources.xcworkspace
|
||||
|
||||
First, define the type representing section.
|
||||
It should conforms to `Hashable` for identifies from the all sections.
|
||||
Type of enum can used conveniently befause it conforms `Hashable` by default.
|
||||
Type of enum can used conveniently because it conforms `Hashable` by default.
|
||||
|
||||
```swift
|
||||
enum Section {
|
||||
|
||||
@@ -182,6 +182,24 @@ open class TableViewDiffableDataSource<SectionIdentifierType: Hashable, ItemIden
|
||||
// Empty implementation.
|
||||
}
|
||||
|
||||
/// Return list of section titles to display in section index view (e.g. "ABCD...Z#").
|
||||
///
|
||||
/// - Parameters:
|
||||
/// - tableView: A table view instance managed by `self`.
|
||||
///
|
||||
/// - Returns: The list of section titles to display.
|
||||
open func sectionIndexTitles(for tableView: UITableView) -> [String]? {
|
||||
return nil
|
||||
}
|
||||
|
||||
/// Tell table which section corresponds to section title/index (e.g. "B",1)).
|
||||
///
|
||||
/// - Parameters:
|
||||
/// - tableView: A table view instance managed by `self`.
|
||||
/// - title: The title as displayed in the section index of tableView.
|
||||
/// - section: An index number identifying a section title in the array returned by sectionIndexTitles(for tableView:).
|
||||
///
|
||||
/// - Returns: The list of section titles to display.
|
||||
open func tableView(_ tableView: UITableView, sectionForSectionIndexTitle _: String, at section: Int) -> Int {
|
||||
return section
|
||||
}
|
||||
|
||||
@@ -5,11 +5,11 @@ TVOS_DEPLOYMENT_TARGET = 9.0
|
||||
SDKROOT =
|
||||
SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator appletvos appletvsimulator
|
||||
TARGETED_DEVICE_FAMILY = 1,2,3
|
||||
VALID_ARCHS[sdk=macosx*] = i386 x86_64
|
||||
VALID_ARCHS[sdk=macosx*] = arm64 i386 x86_64
|
||||
VALID_ARCHS[sdk=iphoneos*] = arm64 armv7 armv7s
|
||||
VALID_ARCHS[sdk=iphonesimulator*] = i386 x86_64
|
||||
VALID_ARCHS[sdk=iphonesimulator*] = arm64 i386 x86_64
|
||||
VALID_ARCHS[sdk=appletv*] = arm64
|
||||
VALID_ARCHS[sdk=appletvsimulator*] = x86_64
|
||||
VALID_ARCHS[sdk=appletvsimulator*] = arm64 x86_64
|
||||
|
||||
CODE_SIGN_IDENTITY =
|
||||
CODE_SIGN_STYLE = Manual
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<a class="header-link" href="../index.html">
|
||||
DiffableDataSources Docs
|
||||
</a>
|
||||
(96% documented)
|
||||
(98% documented)
|
||||
</p>
|
||||
|
||||
<p class="header-col--secondary">
|
||||
@@ -827,7 +827,7 @@ changes with automatic diffing.</p>
|
||||
</article>
|
||||
</div>
|
||||
<section class="footer">
|
||||
<p>© 2020 <a class="link" href="https://github.com/ra1028" target="_blank" rel="external">Ryo Aoyama</a>. All rights reserved. (Last updated: 2020-04-12)</p>
|
||||
<p>© 2021 <a class="link" href="https://github.com/ra1028" target="_blank" rel="external">Ryo Aoyama</a>. All rights reserved. (Last updated: 2021-06-09)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.11.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<a class="header-link" href="../index.html">
|
||||
DiffableDataSources Docs
|
||||
</a>
|
||||
(96% documented)
|
||||
(98% documented)
|
||||
</p>
|
||||
|
||||
<p class="header-col--secondary">
|
||||
@@ -978,6 +978,130 @@ changes with automatic diffing.</p>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:19DiffableDataSources09TableViewaB6SourceC18sectionIndexTitles3forSaySSGSgSo07UITableE0C_tF"></a>
|
||||
<a name="//apple_ref/swift/Method/sectionIndexTitles(for:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:19DiffableDataSources09TableViewaB6SourceC18sectionIndexTitles3forSaySSGSgSo07UITableE0C_tF">sectionIndexTitles(for:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Return list of section titles to display in section index view (e.g. <q>ABCD…Z#</q>).</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">sectionIndexTitles</span><span class="p">(</span><span class="k">for</span> <span class="nv">tableView</span><span class="p">:</span> <span class="kt">UITableView</span><span class="p">)</span> <span class="o">-></span> <span class="p">[</span><span class="kt">String</span><span class="p">]?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>tableView</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>A table view instance managed by <code>self</code>.</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>The list of section titles to display.</p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:19DiffableDataSources09TableViewaB6SourceC05tableE0_27sectionForSectionIndexTitle2atSiSo07UITableE0C_SSSitF"></a>
|
||||
<a name="//apple_ref/swift/Method/tableView(_:sectionForSectionIndexTitle:at:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:19DiffableDataSources09TableViewaB6SourceC05tableE0_27sectionForSectionIndexTitle2atSiSo07UITableE0C_SSSitF">tableView(_:sectionForSectionIndexTitle:at:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Tell table which section corresponds to section title/index (e.g. <q>B</q>,1)).</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">open</span> <span class="kd">func</span> <span class="nf">tableView</span><span class="p">(</span><span class="n">_</span> <span class="nv">tableView</span><span class="p">:</span> <span class="kt">UITableView</span><span class="p">,</span> <span class="n">sectionForSectionIndexTitle</span> <span class="nv">_</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="n">at</span> <span class="nv">section</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Int</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>tableView</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>A table view instance managed by <code>self</code>.</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>title</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>The title as displayed in the section index of tableView.</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>section</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>An index number identifying a section title in the array returned by sectionIndexTitles(for tableView:).</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>The list of section titles to display.</p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -986,7 +1110,7 @@ changes with automatic diffing.</p>
|
||||
</article>
|
||||
</div>
|
||||
<section class="footer">
|
||||
<p>© 2020 <a class="link" href="https://github.com/ra1028" target="_blank" rel="external">Ryo Aoyama</a>. All rights reserved. (Last updated: 2020-04-12)</p>
|
||||
<p>© 2021 <a class="link" href="https://github.com/ra1028" target="_blank" rel="external">Ryo Aoyama</a>. All rights reserved. (Last updated: 2021-06-09)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.11.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<a class="header-link" href="index.html">
|
||||
DiffableDataSources Docs
|
||||
</a>
|
||||
(96% documented)
|
||||
(98% documented)
|
||||
</p>
|
||||
|
||||
<p class="header-col--secondary">
|
||||
@@ -156,7 +156,7 @@ changes with automatic diffing.</p>
|
||||
</article>
|
||||
</div>
|
||||
<section class="footer">
|
||||
<p>© 2020 <a class="link" href="https://github.com/ra1028" target="_blank" rel="external">Ryo Aoyama</a>. All rights reserved. (Last updated: 2020-04-12)</p>
|
||||
<p>© 2021 <a class="link" href="https://github.com/ra1028" target="_blank" rel="external">Ryo Aoyama</a>. All rights reserved. (Last updated: 2021-06-09)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.11.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
+2
-2
@@ -23,7 +23,7 @@
|
||||
<a class="header-link" href="index.html">
|
||||
DiffableDataSources Docs
|
||||
</a>
|
||||
(96% documented)
|
||||
(98% documented)
|
||||
</p>
|
||||
|
||||
<p class="header-col--secondary">
|
||||
@@ -121,7 +121,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
</article>
|
||||
</div>
|
||||
<section class="footer">
|
||||
<p>© 2020 <a class="link" href="https://github.com/ra1028" target="_blank" rel="external">Ryo Aoyama</a>. All rights reserved. (Last updated: 2020-04-12)</p>
|
||||
<p>© 2021 <a class="link" href="https://github.com/ra1028" target="_blank" rel="external">Ryo Aoyama</a>. All rights reserved. (Last updated: 2021-06-09)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.11.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<a class="header-link" href="../index.html">
|
||||
DiffableDataSources Docs
|
||||
</a>
|
||||
(96% documented)
|
||||
(98% documented)
|
||||
</p>
|
||||
|
||||
<p class="header-col--secondary">
|
||||
@@ -497,7 +497,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">appendItems</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">ItemIdentifierType</span><span class="p">],</span> <span class="n">toSection</span> <span class="nv">sectionIdentifier</span><span class="p">:</span> <span class="kt">SectionIdentifierType</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">appendItems</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">ItemIdentifierType</span><span class="p">],</span> <span class="n">toSection</span> <span class="nv">sectionIdentifier</span><span class="p">:</span> <span class="kt">SectionIdentifierType</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -555,7 +555,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">insertItems</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">ItemIdentifierType</span><span class="p">],</span> <span class="n">beforeItem</span> <span class="nv">beforeIdentifier</span><span class="p">:</span> <span class="kt">ItemIdentifierType</span><span class="p">)</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">insertItems</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">ItemIdentifierType</span><span class="p">],</span> <span class="n">beforeItem</span> <span class="nv">beforeIdentifier</span><span class="p">:</span> <span class="kt">ItemIdentifierType</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -613,7 +613,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">insertItems</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">ItemIdentifierType</span><span class="p">],</span> <span class="n">afterItem</span> <span class="nv">afterIdentifier</span><span class="p">:</span> <span class="kt">ItemIdentifierType</span><span class="p">)</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">insertItems</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">ItemIdentifierType</span><span class="p">],</span> <span class="n">afterItem</span> <span class="nv">afterIdentifier</span><span class="p">:</span> <span class="kt">ItemIdentifierType</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -671,7 +671,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">deleteItems</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">ItemIdentifierType</span><span class="p">])</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">deleteItems</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">ItemIdentifierType</span><span class="p">])</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -717,7 +717,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">deleteAllItems</span><span class="p">()</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">deleteAllItems</span><span class="p">()</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -744,7 +744,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">moveItem</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifier</span><span class="p">:</span> <span class="kt">ItemIdentifierType</span><span class="p">,</span> <span class="n">beforeItem</span> <span class="nv">toIdentifier</span><span class="p">:</span> <span class="kt">ItemIdentifierType</span><span class="p">)</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">moveItem</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifier</span><span class="p">:</span> <span class="kt">ItemIdentifierType</span><span class="p">,</span> <span class="n">beforeItem</span> <span class="nv">toIdentifier</span><span class="p">:</span> <span class="kt">ItemIdentifierType</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -802,7 +802,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">moveItem</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifier</span><span class="p">:</span> <span class="kt">ItemIdentifierType</span><span class="p">,</span> <span class="n">afterItem</span> <span class="nv">toIdentifier</span><span class="p">:</span> <span class="kt">ItemIdentifierType</span><span class="p">)</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">moveItem</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifier</span><span class="p">:</span> <span class="kt">ItemIdentifierType</span><span class="p">,</span> <span class="n">afterItem</span> <span class="nv">toIdentifier</span><span class="p">:</span> <span class="kt">ItemIdentifierType</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -860,7 +860,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">reloadItems</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">ItemIdentifierType</span><span class="p">])</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">reloadItems</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">ItemIdentifierType</span><span class="p">])</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -906,7 +906,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">appendSections</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">SectionIdentifierType</span><span class="p">])</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">appendSections</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">SectionIdentifierType</span><span class="p">])</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -952,7 +952,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">insertSections</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">SectionIdentifierType</span><span class="p">],</span> <span class="n">beforeSection</span> <span class="nv">toIdentifier</span><span class="p">:</span> <span class="kt">SectionIdentifierType</span><span class="p">)</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">insertSections</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">SectionIdentifierType</span><span class="p">],</span> <span class="n">beforeSection</span> <span class="nv">toIdentifier</span><span class="p">:</span> <span class="kt">SectionIdentifierType</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1010,7 +1010,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">insertSections</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">SectionIdentifierType</span><span class="p">],</span> <span class="n">afterSection</span> <span class="nv">toIdentifier</span><span class="p">:</span> <span class="kt">SectionIdentifierType</span><span class="p">)</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">insertSections</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">SectionIdentifierType</span><span class="p">],</span> <span class="n">afterSection</span> <span class="nv">toIdentifier</span><span class="p">:</span> <span class="kt">SectionIdentifierType</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1068,7 +1068,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">deleteSections</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">SectionIdentifierType</span><span class="p">])</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">deleteSections</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">SectionIdentifierType</span><span class="p">])</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1114,7 +1114,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">moveSection</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifier</span><span class="p">:</span> <span class="kt">SectionIdentifierType</span><span class="p">,</span> <span class="n">beforeSection</span> <span class="nv">toIdentifier</span><span class="p">:</span> <span class="kt">SectionIdentifierType</span><span class="p">)</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">moveSection</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifier</span><span class="p">:</span> <span class="kt">SectionIdentifierType</span><span class="p">,</span> <span class="n">beforeSection</span> <span class="nv">toIdentifier</span><span class="p">:</span> <span class="kt">SectionIdentifierType</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1172,7 +1172,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">moveSection</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifier</span><span class="p">:</span> <span class="kt">SectionIdentifierType</span><span class="p">,</span> <span class="n">afterSection</span> <span class="nv">toIdentifier</span><span class="p">:</span> <span class="kt">SectionIdentifierType</span><span class="p">)</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">moveSection</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifier</span><span class="p">:</span> <span class="kt">SectionIdentifierType</span><span class="p">,</span> <span class="n">afterSection</span> <span class="nv">toIdentifier</span><span class="p">:</span> <span class="kt">SectionIdentifierType</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1230,7 +1230,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">reloadSections</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">SectionIdentifierType</span><span class="p">])</span></code></pre>
|
||||
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">mutating</span> <span class="kd">func</span> <span class="nf">reloadSections</span><span class="p">(</span><span class="n">_</span> <span class="nv">identifiers</span><span class="p">:</span> <span class="p">[</span><span class="kt">SectionIdentifierType</span><span class="p">])</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1264,7 +1264,7 @@ Represents the mutable state of diffable data source of UI.</p>
|
||||
</article>
|
||||
</div>
|
||||
<section class="footer">
|
||||
<p>© 2020 <a class="link" href="https://github.com/ra1028" target="_blank" rel="external">Ryo Aoyama</a>. All rights reserved. (Last updated: 2020-04-12)</p>
|
||||
<p>© 2021 <a class="link" href="https://github.com/ra1028" target="_blank" rel="external">Ryo Aoyama</a>. All rights reserved. (Last updated: 2021-06-09)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.11.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
+2
-2
@@ -19,10 +19,10 @@
|
||||
documentation
|
||||
</text>
|
||||
<text x="1095" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="250">
|
||||
96%
|
||||
98%
|
||||
</text>
|
||||
<text x="1095" y="140" transform="scale(.1)" textLength="250">
|
||||
96%
|
||||
98%
|
||||
</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
+3
-3
@@ -22,7 +22,7 @@
|
||||
<a class="header-link" href="index.html">
|
||||
DiffableDataSources Docs
|
||||
</a>
|
||||
(96% documented)
|
||||
(98% documented)
|
||||
</p>
|
||||
|
||||
<p class="header-col--secondary">
|
||||
@@ -176,7 +176,7 @@ Correspondence table is below. </p>
|
||||
|
||||
<p>First, define the type representing section.<br>
|
||||
It should conforms to <code>Hashable</code> for identifies from the all sections.<br>
|
||||
Type of enum can used conveniently befause it conforms <code>Hashable</code> by default. </p>
|
||||
Type of enum can used conveniently because it conforms <code>Hashable</code> by default. </p>
|
||||
<pre class="highlight swift"><code><span class="kd">enum</span> <span class="kt">Section</span> <span class="p">{</span>
|
||||
<span class="k">case</span> <span class="n">main</span>
|
||||
<span class="p">}</span>
|
||||
@@ -287,7 +287,7 @@ Please see the <a href="https://github.com/ra1028/DiffableDataSources/blob/maste
|
||||
</article>
|
||||
</div>
|
||||
<section class="footer">
|
||||
<p>© 2020 <a class="link" href="https://github.com/ra1028" target="_blank" rel="external">Ryo Aoyama</a>. All rights reserved. (Last updated: 2020-04-12)</p>
|
||||
<p>© 2021 <a class="link" href="https://github.com/ra1028" target="_blank" rel="external">Ryo Aoyama</a>. All rights reserved. (Last updated: 2021-06-09)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.11.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user