Skip to content

Commit

Permalink
tvOS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenB-Triple committed Apr 3, 2017
1 parent c16948c commit 139a4ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ALDataRequestView.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "ALDataRequestView"
s.version = "2.3.0"
s.version = "2.3.1"
s.summary = "A view representation for data requests. Support for ReactiveCocoa and RXSwift."
s.description = "A view representation for data requests. Support for ReactiveCocoa and RXSwift by attached it to signalproducers and observables."
s.homepage = "https://github.com/AvdLee/ALDataRequestView"
Expand Down
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 2.3.1
- Fixed tvOS support

# 2.3.0
- tvOS support

Expand Down
2 changes: 1 addition & 1 deletion Source/ALDataRequestView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public class ALDataRequestView: UIView {
reloadView.autoPinEdgesToSuperviewEdges()
dataSourceReloadType.setup(for: ReloadType(reason: reloadReason, error: error))

#if os(tvos)
#if os(tvOS)
if #available(iOS 9.0, *) {
dataSourceReloadType.retryButton?.addTarget(self, action: #selector(ALDataRequestView.retryButtonTapped), for: UIControlEvents.primaryActionTriggered)
}
Expand Down

0 comments on commit 139a4ae

Please sign in to comment.