diff --git a/.github/workflows/swiftlint.yml b/.github/workflows/swiftlint.yml index 79d8581..2ff9beb 100644 --- a/.github/workflows/swiftlint.yml +++ b/.github/workflows/swiftlint.yml @@ -4,13 +4,15 @@ on: pull_request: jobs: - swiftlint: + lint: runs-on: macos-latest steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 - - name: Run SwiftLint with Annotations - uses: norio-nomura/action-swiftlint@v4 - with: - strict: true + - name: Install SwiftLint + run: brew install swiftlint + + - name: Run SwiftLint + run: swiftlint --strict diff --git a/iOSswiftUIa11yTechniques/iOSswiftUIa11yTechniques/SwiftLintView.swift b/iOSswiftUIa11yTechniques/iOSswiftUIa11yTechniques/SwiftLintView.swift index dbf8da6..e3aa0dd 100644 --- a/iOSswiftUIa11yTechniques/iOSswiftUIa11yTechniques/SwiftLintView.swift +++ b/iOSswiftUIa11yTechniques/iOSswiftUIa11yTechniques/SwiftLintView.swift @@ -25,7 +25,7 @@ struct SwiftLintView: View { var body: some View { ScrollView { VStack { - Text("Scroll views are not scrollable with Full Keyboard Access unless there is a focusable control like a `Button` or `DisclosureGroup` inside or after the scroll view.") + Text("Swift Lint ... .") .padding(.bottom) Text("Good Examples") .font(.subheadline) @@ -50,7 +50,7 @@ struct SwiftLintView: View { .accessibilityIdentifier("goodImage") DisclosureGroup("Details") { Text("The good example has an `.accessibilityLabel` set on it.") - }.padding(.bottom) + }.padding(.bottom).accessibilityHint("Good Example") Text("Bad Examples") .font(.subheadline) .fontWeight(.bold) @@ -71,6 +71,10 @@ struct SwiftLintView: View { .aspectRatio(contentMode: .fit) .frame(width: 100, height: 100) .accessibilityIdentifier("badImage") + DisclosureGroup("Details") { + Text("The bad example has no single tap alternatives to move or zoom the map.") + }.accessibilityHint("Bad Example") + } .navigationTitle("Swift Lint") .padding()