diff --git a/CHANGELOG.md b/CHANGELOG.md index 138fb98..91c331a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [0.4.2] 2018-05-05 + +### Fixed +- Fixed Linux support for `NSMutableString` to `String` initializer. + ## [0.4.1] 2018-05-04 ### Fixed diff --git a/Sources/Manifest/Internal.swift b/Sources/Manifest/Internal.swift index ed6da49..eda25dd 100644 --- a/Sources/Manifest/Internal.swift +++ b/Sources/Manifest/Internal.swift @@ -1,3 +1,13 @@ +import Foundation + +extension String { + + /// Adds Linux compatibility for the `String(_:)` initializer. + init(_ mutableString: NSMutableString) { + self = String(describing: mutableString) + } +} + internal var testManifest = """ // swift-tools-version:4.0