๐ŸŽ iOS

    [WWDC21] ARC in Swift : Basics and beyond

    [WWDC21] ARC in Swift : Basics and beyond

    ์•ˆ๋…•ํ•˜์„ธ์š”, Chuncheonian์ž…๋‹ˆ๋‹ค. ์ด๋ฒˆ์— ๋ธ”๋กœ๊ทธ๋ฅผ ์‹œ์ž‘ํ•˜๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค!! ์ฒซ ๊ธ€์„ ์–ด๋–ค ๊ฒƒ์„ ์“ธ๊นŒ ๊ณ ๋ฏผํ•˜๋‹ค๊ฐ€ ์ตœ๊ทผ์— ๋ณธ WWDC ์˜์ƒ์„ ๋ฒˆ์—ญํ•˜๋ฉด ์ข‹์„ ๊ฑฐ ๊ฐ™์•„์„œ ์ด๋ฒˆ ๊ธ€์„ ์ค€๋น„ํ•ด๋ดค์Šต๋‹ˆ๋‹ค. ^__^ ์ด๋ฒˆ์— ์ค€๋น„ํ•œ WWDC ์„ธ์…˜์€ ๋ฐ”๋กœ ARC์— ๊ด€๋ จ๋œ ์–˜๊ธฐ์ž…๋‹ˆ๋‹ค. ์˜์ƒ ๋งํฌ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๋ฐ”๋กœ ์‹œ์ž‘ํ•˜๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค~~ Swift๋Š” struct ๋ฐ enum๊ณผ ๊ฐ™์€ ๊ฐ•๋ ฅํ•œ Value(๊ฐ’) ํƒ€์ž…์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. class์™€ ๊ฐ™์€ Reference(์ฐธ์กฐ) ํƒ€์ž…์—์„œ๋Š” ์˜๋„์น˜ ์•Š์€ ๊ณต์œ ์˜ ์œ„ํ—˜์„ฑ์ด ํ•ญ์ƒ ์žˆ๊ธฐ ๋•Œ๋ฌธ์—, ์ด๋ฅผ ๋ฐฉ์ง€ํ•˜๊ณ ์ž ๊ฐ’ ํƒ€์ž…์„ ์ฃผ๋กœ ์จ์•ผ ๋ฉ๋‹ˆ๋‹ค. class๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค๋ฉด, Swift๋Š” Automatic Reference Counting(ARC)์„ ํ†ตํ•ด ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋ ‡๊ธฐ ๋•Œ๋ฌธ์— ์ฐธ์กฐ..