Skip to content
Open
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
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PackageDescription

let package = Package(
name: "Eventually",
platforms: [.iOS(.v16)],
platforms: [.iOS(.v16), .watchOS(.v9)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
Expand Down
6 changes: 6 additions & 0 deletions Sources/Eventually/EventuallyLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ public struct EventuallyLayout: Layout {
}

if shouldProcessHStack {
// Only process if there are frames to process in the current HStack
guard hStackStartIndex < eventFrames.count else {
hStackStartIndex = index
continue
}

// This rect takes full layout width, vertical position and height is a union of events positions and heights in a stack.
// It is used to get intersections with previous events and form a set of frames where events can be placed.
let combinedHStackRect = (hStackStartIndex ..< eventFrames.count).reduce(
Expand Down