clickdaniel
@clickdaniel1254
Reviews Written
1
Average Rating
4.0
Posts
Q&A
๋ฐ์ธ๋ฉ ๊ฐ์ ํน์ ํ๋์ ๊ฐ์ ํ ๋นํ๊ธฐ
PopItButton(popColor: Color.red) ์ด๋ ๊ฒ ํ๋๊น ์๋ฌ๊ฐ ๋จ๋๋ผ๊ตฌ์.
- 0
- 3
- 268
Q&A
๋ฐ์ธ๋ฉ ๊ฐ์ ํน์ ํ๋์ ๊ฐ์ ํ ๋นํ๊ธฐ
struct ContentView: View { @State var colorRed = Color.red @State var colorOrange = Color.orange @State var colorYellow = Color.yellow @State var colorGreen = Color.green @State var colorBlue = Color.blue @State var colorPurple = Color.purple var body: some View { ZStack{ Image("rainbow") .resizable() .edgesIgnoringSafeArea(.all) VStack{ PopItButton(popColor: $colorRed) PopItButton(popColor: $colorOrange) PopItButton(popColor: $colorYellow) PopItButton(popColor: $colorGreen) PopItButton(popColor: $colorBlue) PopItButton(popColor: $colorPurple) } } } } struct PopItButton: View { @Binding var popColor: Color var body: some View { HStack{ ForEach (1..5) { index in aButton() .colorMultiply(popColor) } } } } ์ด๋ฐ๊ฒฝ์ฐ ์ด๋ป๊ฒ ํด์ผํ๋์ง ๊ถ๊ธํด์์
- 0
- 3
- 268
Q&A
1234567 ๊ณฑํ๊ธฐ 2๋ฅผ ๊ณ์ฐ์ ํ๋ฉด 2.46913e+06 ์ด๋ ๊ฒ ๋์ค๋ค์???
Wow ์ ์๋ ์ ๊ฐ ์ค์ค๋ก ๋ฌธ์ ๋ฅผ ํ์์ด์ ใ ใ ํ๋ฉด์ ๋ณด์ด๋ ๋ฌธ์์ด ๋ณ์๋ Decimal์ ์์ผ์ฃผ๊ณ ๋ณ๋์ ๋์ผ ์ซ์๊ฐ์ด๊ณ Decimal ์๋ ๋ฌธ์์ด ๋ณ์๋ฅผ ๋ง๋ค์ด์ ๊ด๋ฆฌํ๋๊น ์ ๋ ฅ์ค๊ฐ์๋ ์ธ์๋ฆฌ ๋ง๋ค ์ฝค๋ง๋ณด์ด๊ฒ ํ๊ณ ์์ซ์ 0.0๋ ํํ๋๋๋ผ๊ตฌ์. ใ ใ ์ ๊ฐ๋ฅด์ณ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค~~~~
- 0
- 2
- 258
Q&A
1234567 ๊ณฑํ๊ธฐ 2๋ฅผ ๊ณ์ฐ์ ํ๋ฉด 2.46913e+06 ์ด๋ ๊ฒ ๋์ค๋ค์???
2.46913e+06 ์ด๋ฐ์์ผ๋ก ๋ณด์๋๊ฑด ํด๊ฒฐํ์ด์. ์ซ์๋ฅผ ํ๋ฉด์ ๋ณด์ฌ์ฃผ๋ Text(display) ์ ํ๋ ์์ผ๋ก ํฌ๊ธฐ๋ฅผ ํ์ ์ง์๋๋ ๊ทธ ํฌ๊ธฐ์ ํํ์ ๋ชปํ๋ฉด ๊ทธ๋ ๊ฒ e+06 ์ด๋ฐ์์ผ๋ก ํํ์ ํ๋๊ฒ ๊ฐ์์. ๋์์ธ์ ์ข ๋ฌด์ํ๊ณ ๋ผ๋ ๊ทธ๋ฅ ํฌ๊ธฐ๋ฅผ ์ ํ์ง ์๊ณ ํจ๋๋ง ์ฃผ์๋๋ ํด๊ฒฐ๋์์ต๋๋ค.
- 0
- 2
- 258
Q&A
ios 14 ์์๋ ๋ฐ์ดํธํผ์ปค์ ์ด๊ธฐ๊ฐ์ด ๋ฌ๋ ฅ์ธ๊ฒ ๊ฐ์์. ํ ์ ๋๋ฆฌ๋ ํ์์ผ๋ก ๋ชป๋ฐ๊พธ๋์
์ ํด๊ฒฐ๋์์ต๋๋ค^^ ๊ฐ์ฌํด์~
- 0
- 2
- 307




