Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit 5006e5c

Browse files
committed
Update CHANGELOG, podspec and docs.
1 parent e04a915 commit 5006e5c

27 files changed

Lines changed: 104 additions & 128 deletions

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# UIEmptyState CHANGELOG
22

3+
## Version 3.0.0
4+
5+
- Fixed bug where `UIEmptyStateDataSource.emptyStateView` computed property and the the `UIViewController+UIEmptyState.emptyStateView` properties conflicted thus not allowing creation of custom view.
6+
- Custom views now work as intended, you can return a `UIView` subclass in the `UIEmptyStateDataSource.emptyStateView` computed property. Make sure to set any needed constraints, etc.
7+
8+
**Breaking API changes:**
9+
10+
Remove `emptyStateView` from view controller extension. This was never intended to be accessible outside of the extension. Use the `emptyStateView` computed property in `UIEmptyStateDataSource` to create a custom view instead.
11+
312
## Version 2.0.2
413

514
Bug fix for retain cycle between delegate, datasource, and the view controller.

UIEmptyState.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pod::Spec.new do |s|
33

44
s.name = "UIEmptyState"
5-
s.version = "2.0.2"
5+
s.version = "3.0.0"
66
s.summary = "An empty state control to give visually appealing context when building iOS applications."
77
s.description = <<-DESC
88
Empty state control which gives context with either a message, image, and buttons to the user when ever there is a reason the state is empty.

docs/Classes.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ <h4>Declaration</h4>
135135
</article>
136136
</div>
137137
<section class="footer">
138-
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-08-14)</p>
139-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
138+
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-12-17)</p>
139+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
140140
</section>
141141
</body>
142142
</div>

docs/Classes/UIEmptyStateView.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@ <h4>Declaration</h4>
618618
</article>
619619
</div>
620620
<section class="footer">
621-
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-08-14)</p>
622-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
621+
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-12-17)</p>
622+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
623623
</section>
624624
</body>
625625
</div>

docs/Extensions.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ <h1>Extensions</h1>
166166
</article>
167167
</div>
168168
<section class="footer">
169-
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-08-14)</p>
170-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
169+
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-12-17)</p>
170+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
171171
</section>
172172
</body>
173173
</div>

docs/Extensions/UICollectionViewController.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ <h4>Declaration</h4>
134134
</article>
135135
</div>
136136
<section class="footer">
137-
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-08-14)</p>
138-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
137+
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-12-17)</p>
138+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
139139
</section>
140140
</body>
141141
</div>

docs/Extensions/UITableViewController.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ <h4>Declaration</h4>
134134
</article>
135135
</div>
136136
<section class="footer">
137-
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-08-14)</p>
138-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
137+
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-12-17)</p>
138+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
139139
</section>
140140
</body>
141141
</div>

docs/Extensions/UIViewController.html

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -159,39 +159,6 @@ <h4>Declaration</h4>
159159
</section>
160160
</div>
161161
</li>
162-
<li class="item">
163-
<div>
164-
<code>
165-
<a name="/s:So16UIViewControllerC12UIEmptyStateE05emptyD4ViewSo0A0CSgv"></a>
166-
<a name="//apple_ref/swift/Property/emptyStateView" class="dashAnchor"></a>
167-
<a class="token" href="#/s:So16UIViewControllerC12UIEmptyStateE05emptyD4ViewSo0A0CSgv">emptyStateView</a>
168-
</code>
169-
</div>
170-
<div class="height-container">
171-
<div class="pointer-container"></div>
172-
<section class="section">
173-
<div class="pointer"></div>
174-
<div class="abstract">
175-
<p>The empty state view associated to the ViewController</p>
176-
177-
<p><strong>Note:</strong>
178-
This view corresponds and is created from
179-
the UIEmptyDataSource method: <code>func viewForEmptyState() -&gt; UIView</code></p>
180-
181-
<p>By default this view is of type <code><a href="../Classes/UIEmptyStateView.html">UIEmptyStateView</a></code></p>
182-
183-
</div>
184-
<div class="declaration">
185-
<h4>Declaration</h4>
186-
<div class="language">
187-
<p class="aside-title">Swift</p>
188-
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">emptyStateView</span><span class="p">:</span> <span class="kt">UIView</span><span class="p">?</span></code></pre>
189-
190-
</div>
191-
</div>
192-
</section>
193-
</div>
194-
</li>
195162
<li class="item">
196163
<div>
197164
<code>
@@ -264,8 +231,8 @@ <h4>Declaration</h4>
264231
</article>
265232
</div>
266233
<section class="footer">
267-
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-08-14)</p>
268-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
234+
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-12-17)</p>
235+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
269236
</section>
270237
</body>
271238
</div>

docs/Protocols.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ <h4>Declaration</h4>
174174
</article>
175175
</div>
176176
<section class="footer">
177-
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-08-14)</p>
178-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
177+
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-12-17)</p>
178+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
179179
</section>
180180
</body>
181181
</div>

docs/Protocols/UIEmptyStateDataSource.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ <h4>Parameters</h4>
810810
<td>
811811
<div>
812812
<p>The duration which we should animate for,
813-
value is grabbed from <code>emptyStateViewAnimationDuration</code></p>
813+
value is grabbed from <code><a href="../Protocols/UIEmptyStateDataSource.html#/s:12UIEmptyState0aB10DataSourceP05emptyB21ViewAnimationDurationSdv">emptyStateViewAnimationDuration</a></code></p>
814814
</div>
815815
</td>
816816
</tr>
@@ -842,8 +842,8 @@ <h4>Parameters</h4>
842842
</article>
843843
</div>
844844
<section class="footer">
845-
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-08-14)</p>
846-
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
845+
<p>&copy; 2017 <a class="link" href="https://luispadron.com" target="_blank" rel="external">Luis</a>. All rights reserved. (Last updated: 2017-12-17)</p>
846+
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
847847
</section>
848848
</body>
849849
</div>

0 commit comments

Comments
 (0)