Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ForEach #17

Closed
melgu opened this issue Jun 1, 2021 · 1 comment
Closed

Support ForEach #17

melgu opened this issue Jun 1, 2021 · 1 comment

Comments

@melgu
Copy link

melgu commented Jun 1, 2021

When using the HPageView with sperate views, it works as expected:

HPageView(selectedPage: $pageIndex) {
	Color.red
	Color.green
	Color.blue
}

But when trying to use ForEach, the PageView looks strange and only has one page indicator dot:

HPageView(selectedPage: $pageIndex, theme: pageTheme) {
	ForEach(0..<2) { n in
		Text("Number \(n)")
	}
}

Bildschirmfoto 2021-06-01 um 15 35 41

@fredyshox fredyshox mentioned this issue Sep 30, 2021
@fredyshox
Copy link
Owner

ForEach-like init was added in release 1.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants