SSUMC-6th / iOS_A

SSUMC 6๊ธฐ iOS ์Šคํ„ฐ๋”” A์กฐ
0 stars 0 forks source link

[Baki/week7] List & ScrollView(2) #53

Closed heemings closed 4 months ago

heemings commented 4 months ago

๐Ÿ“Summary

๐Ÿ’กPR Point

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์œผ๋กœ ๊ตฌํ˜„ํ•  ์ˆ˜ ์žˆ๋Š” ๋ถ€๋ถ„์ด ์žฌ๋ฐŒ์—ˆ์–ด์š”

๐Ÿค” Question

๐Ÿ”‘ย Simulator

แ„ƒแ…กแ†ผแ„€แ…ณแ†ซแ„†แ…กแ„แ…ฆแ†บ