build: makes Xcode 12.4 happy on Catalina with Swift 5.3
This commit is contained in:
parent
0b0d97f20e
commit
720b2347e8
|
@ -1,4 +1,4 @@
|
||||||
// swift-tools-version:5.5
|
// swift-tools-version:5.3
|
||||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
|
@ -364,7 +364,7 @@ extension HorizontalCandidateController {
|
||||||
|
|
||||||
if pageCount > 1 {
|
if pageCount > 1 {
|
||||||
var buttonRect = nextPageButton.frame
|
var buttonRect = nextPageButton.frame
|
||||||
var spacing = 0.0
|
var spacing:CGFloat = 0.0
|
||||||
|
|
||||||
if newSize.height < 40.0 {
|
if newSize.height < 40.0 {
|
||||||
buttonRect.size.height = floor(newSize.height / 2)
|
buttonRect.size.height = floor(newSize.height / 2)
|
||||||
|
|
|
@ -91,10 +91,10 @@ fileprivate class VerticalCandidateTableView: NSTableView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private let kCandidateTextPadding = 24.0
|
private let kCandidateTextPadding:CGFloat = 24.0
|
||||||
private let kCandidateTextLeftMargin = 8.0
|
private let kCandidateTextLeftMargin:CGFloat = 8.0
|
||||||
private let kCandidateTextPaddingWithMandatedTableViewPadding = 18.0
|
private let kCandidateTextPaddingWithMandatedTableViewPadding:CGFloat = 18.0
|
||||||
private let kCandidateTextLeftMarginWithMandatedTableViewPadding = 0.0
|
private let kCandidateTextLeftMarginWithMandatedTableViewPadding:CGFloat = 0.0
|
||||||
|
|
||||||
|
|
||||||
@objc (VTVerticalCandidateController)
|
@objc (VTVerticalCandidateController)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// swift-tools-version:5.5
|
// swift-tools-version:5.3
|
||||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// swift-tools-version:5.5
|
// swift-tools-version:5.3
|
||||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// swift-tools-version:5.5
|
// swift-tools-version:5.3
|
||||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
@ -14,7 +14,7 @@ let package = Package(
|
||||||
dependencies: [
|
dependencies: [
|
||||||
// Dependencies declare other packages that this package depends on.
|
// Dependencies declare other packages that this package depends on.
|
||||||
// .package(url: /* package url */, from: "1.0.0"),
|
// .package(url: /* package url */, from: "1.0.0"),
|
||||||
.package(name: "SwiftyOpenCC", url: "https://github.com/ddddxxx/SwiftyOpenCC.git", revision: "a802c02cbf1c6fcd529575f11a9876d94fc813f4")
|
.package(name: "SwiftyOpenCC", url: "https://github.com/ddddxxx/SwiftyOpenCC.git", from: "2.0.0-beta")
|
||||||
|
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// swift-tools-version:5.5
|
// swift-tools-version:5.3
|
||||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// swift-tools-version:5.5
|
// swift-tools-version:5.3
|
||||||
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
||||||
|
|
||||||
import PackageDescription
|
import PackageDescription
|
||||||
|
|
Loading…
Reference in New Issue