Skip to content

Commit

Permalink
[Removed] OS version requirements of Package.swift #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanhuang13 committed Jul 19, 2019
1 parent 405aa1f commit f651c44
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [0.3.1] - 2019-07-20
- [Removed] OS version requirements of Package.swift #1

## [0.3.0] - 2019-07-18
- [Changed] Replace UIKitForMac to macCatalyst to reflect the changes in beta 4
- [Changed] Replace .color() with .foregroundColor() to reflect the changes in beta 4
Expand Down
1 change: 0 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import PackageDescription

let package = Package(
name: "NSAttributedStringBuilder",
platforms: [.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6)],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ let attributedString = NSAttributedString {
```

## Requirements
Xcode 11 beta 4, iOS 13, macOS 10.15, tvOS 13, or watchOS 13, because it uses Swift 5.1 features like [Function Builder](https://forums.swift.org/t/function-builders/25167).
Xcode 11 beta 4. This project uses Swift 5.1 feature [Function Builder](https://forums.swift.org/t/function-builders/25167).

## Installation
Please use **Swift Package Manager** to install.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ extension Component {
return self.paragraphStyle(paragraphStyle)
}

@available(iOS 9.0, tvOS 9.0, watchOS 2.0, OSX 10.11, *)
public func allowsDefaultTighteningForTruncation() -> Component {
let paragraphStyle = getMutableParagraphStyle()
paragraphStyle.allowsDefaultTighteningForTruncation = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ final class ComponentParagraphSylteModifierTests: XCTestCase {
XCTAssertTrue(sut.isEqual(testData))
}

@available(iOS 9.0, tvOS 9.0, watchOS 2.0, OSX 10.11, *)
func testAllowsDefaultTighteningForTruncation() {
let testData: NSAttributedString = {
let paragraphStyle = NSMutableParagraphStyle()
Expand Down Expand Up @@ -322,6 +323,7 @@ final class ComponentParagraphSylteModifierTests: XCTestCase {
XCTAssertTrue(sut.isEqual(testData))
}

@available(OSX 10.13, *)
func testModifyTextList() {
let textList = NSTextList(markerFormat: .box, options: 0)

Expand Down Expand Up @@ -385,6 +387,7 @@ final class ComponentParagraphSylteModifierTests: XCTestCase {
}
#endif

@available(iOS 9.0, tvOS 9.0, watchOS 2.0, OSX 10.11, *)
func testChaining() {
let testData: NSAttributedString = {
let paragraphStyle = NSMutableParagraphStyle()
Expand Down Expand Up @@ -428,6 +431,7 @@ final class ComponentParagraphSylteModifierTests: XCTestCase {
XCTAssertTrue(sut.isEqual(testData))
}

@available(iOS 9.0, tvOS 9.0, watchOS 2.0, OSX 10.11, *)
func testRandomChainingOrderEqualness() {
let sut = NSAttributedString {
AText("Hello world")
Expand Down

0 comments on commit f651c44

Please sign in to comment.