Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Error when try to use combined with ForEach #22

Description

@jgiunta

Hello, I'm trying to fill iPages using ForEach but I get this error. "Thread 1: Fatal error: Index out of range", on line 78 of PageViewController.swift of the iPages project.

This is the correct code to use or not support dynamic views ?

Thanks

                    iPages {
                        ForEach(notifications, id: \.self) { notification in
                            VStack {
                                Text(notification.subject)
                                    .font(.title2)
                                    .fontWeight(/*@START_MENU_TOKEN@*/.bold/*@END_MENU_TOKEN@*/)
                                Text(notification.kind)
                                    .font(.title2)
                                Text(notification.updatedAt)
                                    .font(.title3)
                            }
                        }
                    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions