๋ชฉ๋กCGRect (1)

Focus On Develop ๐ŸคŸ๐ŸคŸ

[Swift] CGRect, CGSize, CGPoint

๊ณต๋ถ€๋ฅผ ํ•˜๋ฉด ํ• ์ˆ˜๋ก Interface Builder ๋กœ๋งŒ UI์ž‘์—…์„ ํ•˜๋Š”๊ฒŒ ํ•œ๊ณ„๊ฐ€ ์žˆ๋”๋ผ๊ตฌ์š”! ๐Ÿ‘‰ Storyboard vs Programmatic UI ๋ฐ”๋กœ๋ณด๊ธฐ ๊ทธ๋ž˜์„œ ์ €๋Š” Programmatically AutoLayout์— ์ž…๋ฌธํ–ˆ์Šต๋‹ˆ๋‹ค!! ์ด๋Ÿฐ ์ €๋Ÿฐ ์†Œ์Šค๋ฅผ ๋ณด๋ฉด CG ์–ด์ฉŒ๊ตฌ ์ €์ฉŒ๊ตฌ..๊ฐ€ ๋‚˜์˜ค๋Š”๋ฐ, ๋‚ด๊ฐ€ ์•„๋Š” CG๋Š” ์˜ํ™”๋ณด๋ฉด์„œ "์—์ด~์ €๊ฑฐ CG๋„ค" ๋ผ๊ณ  ํ•˜๋Š” ๊ฒƒ ๋ฟ์ธ๋ฐ..๐Ÿ˜‚๐Ÿ˜‚ ๊ทธ๋ž˜์„œ ํ•˜๋‚˜ํ•˜๋‚˜ ๊ธฐ์ดˆ์ ์ธ ๊ฒƒ๋ถ€ํ„ฐ ์ •๋ฆฌํ•ด๊ฐ€๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค!! ๋จผ์ €, CG CG ํ•˜๋Š”๋ฐ CG๊ฐ€ ๋ญ˜๊นŒ์š”~? ๊ทธ๋ ‡๋Œ€์š”. ๊ฐ„๋‹จํžˆ ๋งํ•˜๋ฉด Swift์—์„œ 2์ฐจ์›์ƒ์˜ ํ™”๋ฉด์„ ๊ทธ๋ฆด๋•Œ ์‚ฌ์šฉํ•˜๋Š” Framework๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹ค! ๋งŽ์ด ๋“ค์–ด๋ณธ CGFloat, CGPoint, CGSize, CGRect, CGColor, CGFont ๋“ฑ๋“ฑ ๋‹ค์–‘ํ•œ ์š”์†Œ๊ฐ€ ์š” Fra..