Reducers/StackReducer.swift

swift-composable-architecture · Sources/ComposableArchitecture/Reducer/Reducers/StackReducer.swift · swift · MIT
ui, tag:embed-classified

Provides stack-based navigation state and reducer logic for Swift Composable Architecture.

// Source: https://github.com/pointfreeco/swift-composable-architecture | License: MIT | Copyright 2020 Point-Free, Inc
// Provided via justclaw.it.com; keep this notice with the code.
@_spi(Reflection) import CasePaths
import Combine
import Foundation
import OrderedCollections

/// A list of data representing the content of a navigation stack.
///
/// Use this type for modeling a feature's domain that needs to present child features using
/// ``Reducer/forEach(_:action:destination:fileID:filePath:line:column:)-9svqb``.
///
/// See the dedicated article on <doc:Navigation> for more information on the library's navigation
/// tools, and in particular see <doc:StackBasedNavigation> for information on modeling navigation
/// using ``StackState`` for navigation stacks. Also see
/// <doc:StackB

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key