-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for Swift 5.7 compiler #4823
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ DerivedData | |
*.ipa | ||
*.dSYM.zip | ||
*.dSYM | ||
*.dia | ||
|
||
## Playgrounds | ||
timeline.xctimeline | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,17 @@ | |
"repositoryURL": "https://github.com/apple/swift-algorithms", | ||
"state": { | ||
"branch": null, | ||
"revision": "bb3bafeca0e164ece3403a9de646b7d38c07dd49", | ||
"version": "0.0.2" | ||
"revision": "b14b7f4c528c942f121c8b860b9410b2bf57825e", | ||
"version": "1.0.0" | ||
} | ||
}, | ||
{ | ||
"package": "swift-numerics", | ||
"repositoryURL": "https://github.com/apple/swift-numerics", | ||
"state": { | ||
"branch": null, | ||
"revision": "6b24333510e9044cf4716a07bed65eeed6bc6393", | ||
"version": "0.0.8" | ||
"revision": "0a5bc04095a675662cf24757cc0640aa2204253b", | ||
"version": "1.0.2" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Xcode updated these automatically and I think its a reasonable update as they were very outdated. |
||
} | ||
} | ||
] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,7 +119,7 @@ extension CGPoint | |
extension CGContext | ||
{ | ||
|
||
open func drawImage(_ image: NSUIImage, atCenter center: CGPoint, size: CGSize) | ||
public func drawImage(_ image: NSUIImage, atCenter center: CGPoint, size: CGSize) | ||
{ | ||
var drawOffset = CGPoint() | ||
drawOffset.x = center.x - (size.width / 2) | ||
|
@@ -157,7 +157,7 @@ extension CGContext | |
NSUIGraphicsPopContext() | ||
} | ||
|
||
open func drawText(_ text: String, at point: CGPoint, align: TextAlignment, anchor: CGPoint = CGPoint(x: 0.5, y: 0.5), angleRadians: CGFloat = 0.0, attributes: [NSAttributedString.Key : Any]?) | ||
public func drawText(_ text: String, at point: CGPoint, align: TextAlignment, anchor: CGPoint = CGPoint(x: 0.5, y: 0.5), angleRadians: CGFloat = 0.0, attributes: [NSAttributedString.Key : Any]?) | ||
{ | ||
let drawPoint = getDrawPoint(text: text, point: point, align: align, attributes: attributes) | ||
|
||
|
@@ -175,7 +175,7 @@ extension CGContext | |
} | ||
} | ||
|
||
open func drawText(_ text: String, at point: CGPoint, anchor: CGPoint = CGPoint(x: 0.5, y: 0.5), angleRadians: CGFloat, attributes: [NSAttributedString.Key : Any]?) | ||
public func drawText(_ text: String, at point: CGPoint, anchor: CGPoint = CGPoint(x: 0.5, y: 0.5), angleRadians: CGFloat, attributes: [NSAttributedString.Key : Any]?) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Went with the Xcode suggested fix here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what's the error message for open? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't remember now, sorry. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
quoted from this issue:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The quoted issue doesn't seem to be relevant here. For me, the issue
still was still there with this PR's branch. It was gone only after I made the required conversions: I am using Xcode 14 beta 3 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The open vs public is not an error, but a build warning:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This is the way! |
||
{ | ||
var drawOffset = CGPoint() | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These files get spewed out when compiling with the development toolchain so I added them to the ignore file.