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: 8 additions & 6 deletions .github/workflows/swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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()
Expand Down
Loading