Closed heemings closed 4 months ago
ScrollView { VStack { Spacer().frame(height: 50) ScrollView(.horizontal, showsIndicators: false) { HStack(spacing: 0) { ForEach(secondPosts) { post in SecondPostView(post: post) } } } .padding(.bottom) ScrollView { VStack { ForEach(posts) { post in PostView(post: post) .padding(.horizontal, 10) } } } } } .padding(.top)
์์ง ์คํฌ๋กค๋ฌ์ ์ํ ์คํฌ๋กค๋ฌ๋ฅผ ํ ๋ฒ์ ๊ตฌํํ ๋ถ๋ถ์ ๋๋ค! UIKit๊ณผ๋ ๋ค๋ฅด๊ฒ Stack์ผ๋ก ๊ตฌํํ ์ ์๋ ๋ถ๋ถ์ด ์ฌ๋ฐ์์ด์
๐Summary
๐กPR Point
์์ง ์คํฌ๋กค๋ฌ์ ์ํ ์คํฌ๋กค๋ฌ๋ฅผ ํ ๋ฒ์ ๊ตฌํํ ๋ถ๋ถ์ ๋๋ค! UIKit๊ณผ๋ ๋ค๋ฅด๊ฒ Stack์ผ๋ก ๊ตฌํํ ์ ์๋ ๋ถ๋ถ์ด ์ฌ๋ฐ์์ด์
๐ค Question
๐ย Simulator