Skip to content
Merged

tvOS #68

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion KIImagePager.podspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"tag": "2.1.3"
},
"platforms": {
"ios": "8.0"
"ios": "8.0",
"tvos": "9.0"
},
"source_files": "KIImagePager/KIImagePager/*.{h,m}",
"resources": "KIImagePager/KIImagePager/*.png",
Expand Down
2 changes: 2 additions & 0 deletions KIImagePager/KIImagePager/KIImagePager.m
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ - (void) initializeScrollView
{
_scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
_scrollView.delegate = self;
#if !TARGET_OS_TV
_scrollView.pagingEnabled = YES;
#endif
_scrollView.bounces = _bounces;
_scrollView.showsHorizontalScrollIndicator = NO;
_scrollView.showsVerticalScrollIndicator = NO;
Expand Down
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import PackageDescription
let package = Package(
name: "KIImagePager",
platforms: [
.iOS(.v8)
.iOS(.v8),
.tvOS(.v9)
],
products: [
.library(
Expand Down