Instance Methodswift-composable-architecture 1.18.0ComposableArchitecture
index(before:)
StackReducer.swift:180func index(before i: Int) -> Int
func index(before i: Int) -> Int
s22ComposableArchitecture10StackStateV5index6beforeS2i_tF
What are these?3PB00
import ComposableArchitecture
The Composable Architecture (TCA, for short) is a library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind. It can be used in SwiftUI, UIKit, and more, and on any Apple platform (iOS, macOS, tvOS, and watchOS).
struct StackState<Element>
A list of data representing the content of a navigation stack.
@frozen struct Int
A signed integer value type.
init()
var customDumpMirror: Mirror { get }
var debugDescription: String { get }
var description: String { get }
var endIndex: Int { get }
var ids: OrderedSet<StackElementID> { get }
An ordered set of identifiers, one for each stack element.
var startIndex: Int { get }
subscript(position: Int) -> Element { get }
subscript<Case>(id id: StackElementID, case path: CaseKeyPath<Element, Case>) -> Case? where Element : CasePathable { get set }
Accesses the value associated with the given id and case for reading and writing.
subscript<Case>(id id: StackElementID, case path: AnyCasePath<Element, Case>, fileID fileID: _HashableStaticString = #fileID, filePath filePath: _HashableStaticString = #filePath, line line: UInt = #line, column column: UInt = #column) -> Case? { get set }
subscript(id id: StackElementID, fileID fileID: _HashableStaticString = #fileID, filePath filePath: _HashableStaticString = #filePath, line line: UInt = #line, column column: UInt = #column) -> Element? { get set }
Accesses the value associated with the given id for reading and writing.
func index(after i: Int) -> Int
mutating func pop(from id: StackElementID)
Pops the element corresponding to id
from the stack, and all elements after it.
mutating func pop(to id: StackElementID)
Pops all elements that come after the element corresponding to id
in the stack.
mutating func removeAll(keepingCapacity keepCapacity: Bool = false)
mutating func replaceSubrange(_ subrange: Range<Int>, with newElements: some Collection<Element>)
struct Component
struct PathView