From c89932867c4cae2710787aec4ddb0026151b21c6 Mon Sep 17 00:00:00 2001 From: Kevin McKee Date: Tue, 10 Jun 2025 08:39:57 -0700 Subject: [PATCH 1/2] Xcode 16.4 --- .github/workflows/xcodebuild.yml | 2 +- OAuthSample/ContentView.swift | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/xcodebuild.yml b/.github/workflows/xcodebuild.yml index 4a9cc77..015abab 100644 --- a/.github/workflows/xcodebuild.yml +++ b/.github/workflows/xcodebuild.yml @@ -14,7 +14,7 @@ jobs: build: env: - XCODE_VERSION: 'Xcode_16.3' + XCODE_VERSION: 'Xcode_16.4' runs-on: macos-15 diff --git a/OAuthSample/ContentView.swift b/OAuthSample/ContentView.swift index 05a3b54..7bb99d2 100644 --- a/OAuthSample/ContentView.swift +++ b/OAuthSample/ContentView.swift @@ -85,7 +85,7 @@ struct ContentView: View { } case .receivedDeviceCode: openWebView() - case .authorized: + case .authorized(_, _): dismissWebView() } } diff --git a/README.md b/README.md index 975ce3f..36e30f2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ![Build](https://github.com/codefiesta/OAuthSample/actions/workflows/xcodebuild.yml/badge.svg) -![Xcode 16.3+](https://img.shields.io/badge/Xcode-16.3%2B-gold.svg) +![Xcode 16.4+](https://img.shields.io/badge/Xcode-16.4%2B-gold.svg) ![Swift 6.0+](https://img.shields.io/badge/Swift-6.0%2B-tomato.svg) ![iOS 18.0+](https://img.shields.io/badge/iOS-18.0%2B-crimson.svg) ![macOS 15.0+](https://img.shields.io/badge/macOS-15.0%2B-skyblue.svg) From f20836a242b141a3b3a551bb113cfceff4ddbe15 Mon Sep 17 00:00:00 2001 From: Kevin McKee Date: Tue, 10 Jun 2025 08:40:36 -0700 Subject: [PATCH 2/2] Linting --- OAuthSample/ContentView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OAuthSample/ContentView.swift b/OAuthSample/ContentView.swift index 7bb99d2..1728a08 100644 --- a/OAuthSample/ContentView.swift +++ b/OAuthSample/ContentView.swift @@ -89,7 +89,7 @@ struct ContentView: View { dismissWebView() } } - + private func openWebView() { #if !os(tvOS) openWindow(id: "oauth") @@ -101,7 +101,7 @@ struct ContentView: View { dismissWindow(id: "oauth") #endif } - + } #Preview {