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..1728a08 100644 --- a/OAuthSample/ContentView.swift +++ b/OAuthSample/ContentView.swift @@ -85,11 +85,11 @@ struct ContentView: View { } case .receivedDeviceCode: openWebView() - case .authorized: + case .authorized(_, _): dismissWebView() } } - + private func openWebView() { #if !os(tvOS) openWindow(id: "oauth") @@ -101,7 +101,7 @@ struct ContentView: View { dismissWindow(id: "oauth") #endif } - + } #Preview { 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)