-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a39a49
commit 640402b
Showing
9 changed files
with
121 additions
and
14 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
...ccessibilityDocumentation/Documentation.docc/Resources/AdoptingCell/DescribeCell_11.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
extension MenuViewController: UIScrollViewAccessibilityDelegate { | ||
public func accessibilityScrollStatus(for scrollView: UIScrollView) -> String? { | ||
|
||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...essibilityDocumentation/Documentation.docc/Resources/AdoptingCell/DescribeCell_11_0.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
extension MenuViewController { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
...ccessibilityDocumentation/Documentation.docc/Resources/AdoptingCell/DescribeCell_12.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extension MenuViewController: UIScrollViewAccessibilityDelegate { | ||
public func accessibilityScrollStatus(for scrollView: UIScrollView) -> String? { | ||
guard let visiblePaths = self.tableView.indexPathsForVisibleRows else { | ||
return nil | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ccessibilityDocumentation/Documentation.docc/Resources/AdoptingCell/DescribeCell_13.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
extension MenuViewController: UIScrollViewAccessibilityDelegate { | ||
public func accessibilityScrollStatus(for scrollView: UIScrollView) -> String? { | ||
guard let visiblePaths = self.tableView.indexPathsForVisibleRows else { | ||
return nil | ||
} | ||
|
||
let visibleProducts = visiblePaths.map { path in | ||
menuModel.products[path.row] | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ccessibilityDocumentation/Documentation.docc/Resources/AdoptingCell/DescribeCell_14.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
extension MenuViewController: UIScrollViewAccessibilityDelegate { | ||
public func accessibilityScrollStatus(for scrollView: UIScrollView) -> String? { | ||
guard let visiblePaths = self.tableView.indexPathsForVisibleRows else { | ||
return nil | ||
} | ||
|
||
let visibleProducts = visiblePaths.map { path in | ||
menuModel.products[path.row] | ||
} | ||
|
||
let titles = visibleProducts.map(\.title) | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...ccessibilityDocumentation/Documentation.docc/Resources/AdoptingCell/DescribeCell_15.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
extension MenuViewController: UIScrollViewAccessibilityDelegate { | ||
public func accessibilityScrollStatus(for scrollView: UIScrollView) -> String? { | ||
guard let visiblePaths = self.tableView.indexPathsForVisibleRows else { | ||
return nil | ||
} | ||
|
||
let visibleProducts = visiblePaths.map { path in | ||
menuModel.products[path.row] | ||
} | ||
|
||
let titles = visibleProducts.map(\.title) | ||
|
||
return titles.joined(separator: ", ") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// SwiftUIView.swift | ||
// | ||
// | ||
// Created by Mikhail Rubanov on 13.12.2023. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct SwiftUIView: View { | ||
var body: some View { | ||
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/) | ||
} | ||
} | ||
|
||
#Preview { | ||
SwiftUIView() | ||
} |