Computer Science/swift ๋ฝ€๊ฐœ๊ธฐ - ์ฐธ๊ณ  ์‚ฌ์ดํŠธ ์ €์žฅ์†Œ

[swift] swiftui Button (+onTapGesture)

_cactus 2021. 7. 31. 15:31
๋ฐ˜์‘ํ˜•

reference :

 

https://seons-dev.tistory.com/24

 

SwiftUI : Button / onTapGesture

๋ชฉ์ฐจ SwiftUI 3.0 ๋ฒ„์ „์˜ Button ๊ธฐ๋Šฅ์ด ๋‹ค์ˆ˜ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ถ”ํ›„ ์—…๋ฐ์ดํŠธ ์˜ˆ์ •์ž…๋‹ˆ๋‹ค. ํŠธ๋ฆฌ๊ฑฐ(Trigger) ๋  ๋•Œ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๋Š” ์ปจํŠธ๋กค์ž…๋‹ˆ๋‹ค. Button ์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•ฉ์‹œ๋‹ค. Button ๊ธฐ๋ณธ ์ฝ”๋“œ //์ฒซ

seons-dev.tistory.com

https://www.hohyeonmoon.com/blog/swiftui-tutorial-buttons/

 

SwiftUI ์—ฌ๋Ÿฌ ์ข…๋ฅ˜์˜ Buttons | Hohyeon Moon

์ด๋ฒˆ์—๋Š” SwiftUI์—์„œ ์—ฌ๋Ÿฌ ์ข…๋ฅ˜์˜ Buttons๋ฅผ ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉํ•˜๋Š”์ง€์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ์ด ๊ฐ•์ขŒ๋Š” Swift ๊ธฐ๋ณธ ๋ฌธ๋ฒ•์„ ์ˆ™์ง€ํ•˜๊ณ  ์žˆ๋‹ค๋Š” ๊ฐ€์ • ํ•˜์— ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ผ๋ฐ˜ Button SwiftUI์—์„œ ์ผ๋ฐ˜ ๋ฒ„ํŠผ์„

www.hohyeonmoon.com

 

728x90
๋ฐ˜์‘ํ˜•