When the sidebar is displayed, the text next to the icon momentarily becomes vertical. Happy that it works but it sure works in weird ways. I dont know how but it seems like ForEach will create a VStack for you and specifically it will set a default spacing if your child element contains any Image. The first view at the left most is the Text view with the text “Hello”, the second in the middle is the Text view with the text “World” and the right most is the Image view with an image named “placeholder” in your assets.Įxample of VStack VStack( alignment. 1 day ago &0183 &32 chakra ui and next.js. UPDATE: So apparently I fixed this problem by adding a VStack inbetween ScrollView and ForEach, and estting the spacing to 0. The screenshot above shows the two Text views and an Image view are organised horizontally. Using VStack and HStack with Zero Spacing. ZStack – lay out views with depth i.e. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |