Skip to content

Commit c7f36fd

Browse files
committed
wip
1 parent 5e031cd commit c7f36fd

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Sources/ComposableArchitecture/Documentation.docc/Extensions/UIKit.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ integrate into application code written in UIKit.
1616

1717
### Presenting alerts and action sheets
1818

19-
- ``UIKit/UIAlertController/init(store:)``
19+
- ``UIKit/UIAlertController``
20+
21+
### Stack-based navigation
22+
23+
- ``UIKitNavigation/NavigationStackController``
24+
- ``UIKitNavigation/UIPushAction``
2025

2126
### Combine integration
2227

Sources/ComposableArchitecture/UIKit/NavigationStackControllerUIKit.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@
7272
@available(iOS 17, macOS 14, tvOS 17, watchOS 10, *)
7373
@MainActor
7474
extension UIPushAction: Sendable {
75+
/// Pushes an element of ``StackState`` onto the current navigation stack.
76+
///
77+
/// This is the UIKit equivalent of
78+
/// ``SwiftUI/NavigationLink/init(state:label:fileID:filePath:line:column:)``.
79+
///
80+
/// - Parameter state: An element of stack state.
7581
public func callAsFunction<Element: Hashable>(state: Element) {
7682
@Dependency(\.stackElementID) var stackElementID
7783
self(value: StackState.Component(id: stackElementID(), element: state))

0 commit comments

Comments
 (0)