Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ jobs:
strategy:
fail-fast: false
matrix:
swift: ["6.2"]
swift: ["6.2", "6.3"]
include:
- swift: "6.2"
runner: "macos-26"
xcode: "26.1"
xcode: "26.4.1"
- swift: "6.3"
runner: "macos-26"
xcode: "26.4.1"
runs-on: ${{ matrix.runner }}
outputs:
artifact-name: macos-build
Expand All @@ -73,11 +76,14 @@ jobs:
strategy:
fail-fast: false
matrix:
swift: ["6.2"]
swift: ["6.2", "6.3"]
include:
- swift: "6.2"
runner: "macos-26"
xcode: "26.1"
xcode: "26.4.1"
- swift: "6.3"
runner: "macos-26"
xcode: "26.4.1"
needs: build-macos-spm
runs-on: ${{ matrix.runner }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v6
- name: Xcode Version
run: ./.scripts/xcode-select
run: ./.scripts/xcode-select 26.4.1
- name: Build Documentation
run: ./.scripts/build-static-docc
- name: Compress Documentation
Expand Down
2 changes: 1 addition & 1 deletion .scripts/xcode-select
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

VERSION="${1:-26.1}"
VERSION="${1:-26.4.1}"

sudo xcode-select --switch "/Applications/Xcode_${VERSION}.app"
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.3.1
8 changes: 5 additions & 3 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
--extensionacl on-declarations
--disable blankLinesAtEndOfScope, blankLinesAtStartOfScope, redundantNilInit, unusedArguments, redundantParens, wrapMultilineStatementBraces, trailingCommas, braces, opaqueGenericParameters, redundantSelf, spaceAroundOperators
--header "ViewScope\n{file}\n\nMIT License\n\nCopyright (c) 2025 Varun Santhanam\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\n\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."
--swift-version 6.2
--test-case-name-format preserve
--suite-name-format preserve
--enable testSuiteAccessControl
--disable simplifyGenericConstraints, blankLinesAtEndOfScope, blankLinesAtStartOfScope, redundantNilInit, unusedArguments, redundantParens, wrapMultilineStatementBraces, trailingCommas, braces, opaqueGenericParameters, redundantSelf, spaceAroundOperators, redundantSwiftTestingSuite, redundantMemberwiseInit
--header "ViewScope\n{file}\n\nMIT License\n\nCopyright (c) 2025 Varun Santhanam\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\n\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."
10 changes: 5 additions & 5 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 6.2
// swift-tools-version: 6.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -22,11 +22,11 @@ let package = Package(
dependencies: [
.package(
url: "https://github.com/swiftlang/swift-docc-plugin.git",
exact: "1.4.5"
exact: "1.5.0"
),
.package(
url: "https://github.com/nicklockwood/SwiftFormat.git",
exact: "0.58.7"
exact: "0.61.1"
)
],
targets: [
Expand Down
39 changes: 39 additions & 0 deletions Package@swift-6.2.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// swift-tools-version: 6.2
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "ViewScope",
platforms: [
.macOS(.v15),
.macCatalyst(.v18),
.iOS(.v18),
.watchOS(.v11),
.tvOS(.v18),
.visionOS(.v2)
],
products: [
.library(
name: "ViewScope",
targets: ["ViewScope"]
)
],
targets: [
.target(
name: "ViewScope",
swiftSettings: [
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
.enableUpcomingFeature("ExistentialAny")
]
),
.testTarget(
name: "ViewScopeTests",
dependencies: ["ViewScope"],
swiftSettings: [
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
.enableUpcomingFeature("ExistentialAny")
]
)
]
)
2 changes: 1 addition & 1 deletion Tests/ViewScopeTests/ViewScopeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
import Testing
@testable import ViewScope

@Test func example() async throws {
@Test func example() {
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
}