Skip to content

Commit

Permalink
Update to Swift 5.5, remove "insets" var
Browse files Browse the repository at this point in the history
 - Update GCOverseer.
 - Update GitHub YML.
  • Loading branch information
Fernando Fernandes committed Jul 16, 2021
1 parent 2a4365c commit e902ffd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
build-test:
runs-on: macos-11
env:
DEVELOPER_DIR: /Applications/Xcode_12.5.app/Contents/Developer
DEVELOPER_DIR: /Applications/Xcode_13.0.app/Contents/Developer
steps:
- name: Cancel previous jobs
uses: styfle/cancel-workflow-action@0.6.0
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}

Expand Down
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"object": {
"pins": [
{
"package": "AppLogger",
"package": "applogger",
"repositoryURL": "https://github.com/backslash-f/applogger",
"state": {
"branch": null,
Expand All @@ -11,12 +11,12 @@
}
},
{
"package": "GCOverseer",
"package": "gcoverseer",
"repositoryURL": "https://github.com/backslash-f/gcoverseer",
"state": {
"branch": null,
"revision": "0809c26546d12c38ab179d6bb2cbb259b60b9aa4",
"version": "0.2.1"
"revision": "908810d48f09bc62842290997177212d77296f2f",
"version": "0.2.2"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.4
// swift-tools-version:5.5

import PackageDescription

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ Property | Description | Notes
`var viewBottom: CGFloat`| The "lowest `SKScene` point" converted from the "lowest`SKView` point". | -
`var viewLeft: CGFloat`| The "leftmost `SKScene` point" converted from the "leftmost`SKView` point". | -
`var viewRight: CGFloat`| The "rightmost `SKScene` point" converted from the "rightmost`SKView` point". | -
`var insets: UIEdgeInsets`| The insets used to determine the safe area of the window. | iOS, tvOS and Mac Catalyst only, as it relies on [`UIEdgeInsets`](https://developer.apple.com/documentation/uikit/uiedgeinsets).

## Default Values
These properties have the following default values:
Expand Down
8 changes: 1 addition & 7 deletions Sources/CSKScene/CSKScene+Coordinates.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Foundation
import SpriteKit

public extension CSKScene {
Expand Down Expand Up @@ -31,13 +32,6 @@ public extension CSKScene {
let point = CGPoint(x: view.bounds.size.width, y: .zero)
return convertPoint(fromView: point).x
}

#if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)
/// The insets used to determine the safe area of the window.
var insets: UIEdgeInsets {
UIApplication.shared.delegate?.window??.safeAreaInsets ?? .zero
}
#endif
}

// MARK: - Private
Expand Down

0 comments on commit e902ffd

Please sign in to comment.