Skip to content

Commit d04656d

Browse files
author
Luc Dion
authored
Merge pull request #46 from mirego/add_tvOS_support
Add tvOS support
2 parents 10a015a + cf7c786 commit d04656d

File tree

7 files changed

+26
-9
lines changed

7 files changed

+26
-9
lines changed

PinLayout.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ A view can be layouted using PinLayout and later with another method.
9090

9191
# s.platform = :ios
9292
s.platform = :ios, "8.0"
93+
s.tvos.deployment_target = '9.0'
9394

9495
# When using multiple platforms
9596
# s.ios.deployment_target = "5.0"

PinLayout.xcodeproj/project.pbxproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,13 +388,15 @@
388388
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
389389
GCC_WARN_UNUSED_FUNCTION = YES;
390390
GCC_WARN_UNUSED_VARIABLE = YES;
391-
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
391+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
392392
MTL_ENABLE_DEBUG_INFO = YES;
393393
ONLY_ACTIVE_ARCH = YES;
394394
SDKROOT = iphoneos;
395+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator appletvos appletvsimulator";
395396
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
396397
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
397398
TARGETED_DEVICE_FAMILY = "1,2";
399+
TVOS_DEPLOYMENT_TARGET = 9.0;
398400
VERSIONING_SYSTEM = "apple-generic";
399401
VERSION_INFO_PREFIX = "";
400402
};
@@ -435,11 +437,13 @@
435437
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
436438
GCC_WARN_UNUSED_FUNCTION = YES;
437439
GCC_WARN_UNUSED_VARIABLE = YES;
438-
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
440+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
439441
MTL_ENABLE_DEBUG_INFO = NO;
440442
SDKROOT = iphoneos;
443+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator appletvos appletvsimulator";
441444
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
442445
TARGETED_DEVICE_FAMILY = "1,2";
446+
TVOS_DEPLOYMENT_TARGET = 9.0;
443447
VALIDATE_PRODUCT = YES;
444448
VERSIONING_SYSTEM = "apple-generic";
445449
VERSION_INFO_PREFIX = "";

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,30 @@
55
<h1 align="center" style="color: #376C9D; font-family: Arial Black, Gadget, sans-serif; font-size: 3em">PinLayout</h1>
66

77
<p align="center">
8+
<a href=""><img src="https://img.shields.io/cocoapods/p/PinLayout.svg?style=flat" /></a>
89
<a href="https://travis-ci.org/mirego/PinLayout"><img src="https://travis-ci.org/mirego/PinLayout.svg?branch=master" /></a>
910
<a href="https://codecov.io/gh/mirego/PinLayout"><img src="https://codecov.io/gh/mirego/PinLayout/branch/master/graph/badge.svg"/></a>
1011
<a href='https://img.shields.io/cocoapods/v/PinLayout.svg'><img src="https://img.shields.io/cocoapods/v/PinLayout.svg" /></a>
1112
<a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" /></a>
1213
<a href="https://raw.githubusercontent.com/mirego/PinLayout/master/LICENSE"><img src="https://img.shields.io/badge/license-New%20BSD-blue.svg?style=flat" /></a>
13-
<a href=""><img src="https://img.shields.io/cocoapods/p/PinLayout.svg?style=flat" /></a>
1414
<!--a href="https://github.com/mirego/PinLayout/issues"><img src="https://img.shields.io/github/issues/mirego/PinLayout.svg?style=flat" /></a-->
1515
</p>
1616

1717
<br>
1818

1919
Extremely Fast views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable.
2020

21-
> "No auto-layout constraints attached"
21+
> "No Auto layout constraints attached"
2222
2323
<br>
2424

25+
### Requirements
26+
* iOS 8.0+ / tvOS 9.0+
27+
* Xcode 8.0+
28+
* Swift 3.0+
29+
30+
### Content
31+
2532
* [PinLayout principles and philosophy](#introduction)
2633
* [Performance](#performance)
2734
* [Usage example](#intro_usage_example)
@@ -43,7 +50,6 @@ Extremely Fast views layouting without auto layout. No magic, pure code, full co
4350

4451
:pushpin: PinLayout is actively updated, adding more features weekly. So please come often to see latest changes. You can also **Star** it to be able to retrieve it easily later.
4552

46-
4753
## PinLayout principles and philosophy <a name="introduction"></a>
4854

4955
* Manual layouting (doesn't rely on auto layout).
@@ -916,6 +922,12 @@ PinLayout was inspired by other great layout frameworks, including:
916922
* [SnapKit](https://github.com/SnapKit/SnapKit): Clean interface for anchors.
917923
* ... and even Auto layout :-)
918924

925+
<br>
926+
927+
## Changelog
928+
PinLayout recent history is available in the are documented in the [CHANGELOG](CHANGELOG.md).
929+
930+
<br>
919931

920932
## License
921933
BSD 3-Clause License

Sources/Coordinates.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
import Foundation
2929

30-
#if os(iOS)
30+
#if os(iOS) || os(tvOS)
3131
import UIKit
3232

3333
class Coordinates {

Sources/PinLayout.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
import Foundation
2929

30-
#if os(iOS)
30+
#if os(iOS) || os(tvOS)
3131
import UIKit
3232

3333
// MARK: - PinLayout UIView's extension

Sources/PinLayoutImpl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
import Foundation
2929

30-
#if os(iOS)
30+
#if os(iOS) || os(tvOS)
3131

3232
public var unitTestLastWarning: String?
3333

Sources/TypesImpl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
import Foundation
2929

30-
#if os(iOS)
30+
#if os(iOS) || os(tvOS)
3131
import UIKit
3232

3333
typealias Context = () -> String

0 commit comments

Comments
 (0)