๊ธ€ ์ž‘์„ฑ์ž: ๊ฐœ๋ฐœํ•˜๋Š” ํ›ˆ์ด
๐Ÿ’ก ๊ฐœ์ธ์ ์ธ ๊ณต๋ถ€๋ฅผ ๋ชฉ์ ์œผ๋กœ ๋ฒˆ์—ญํ•˜์—ฌ ๊ฐ„๋žตํ•˜๊ฒŒ ์ •๋ฆฌ๋งŒ ํ•œ ๊ธ€์ž…๋‹ˆ๋‹ค. ์ „๋ฌธ์„ ํฌํ•จํ•˜๊ณ  ์žˆ์ง€ ์•Š์œผ๋‹ˆ ์ž์„ธํ•œ ๋‚ด์šฉ์€ ๊ณต์‹๋ฌธ์„œ๋ฅผ ์ฝ์–ด๋ณด์‹œ๊ธธ ๊ถŒํ•ด๋“œ๋ฆฝ๋‹ˆ๋‹ค!

https://developer.apple.com/design/human-interface-guidelines/ios/bars/navigation-bars/

 

Navigation Bars - Bars - iOS - Human Interface Guidelines - Apple Developer

Navigation Bars A navigation bar appears at the top of an app screen, below the status bar, and enables navigation through a series of hierarchical screens. When a new screen is displayed, a back button, often labeled with the title of the previous screen,

developer.apple.com

Navigation Bars

๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”๋Š” ์•ฑ ์Šคํฌ๋ฆฐ์˜ ์ƒ๋‹จ์— ํ‘œ์‹œ๋˜๋ฉฐ, ์ƒํƒœ ํ‘œ์‹œ ๋ฐ”(status bar)์— ์•„๋ž˜์— ์œ„์น˜ํ•˜์—ฌ ํ™”๋ฉด ๊ณ„์ธต ๊ฐ„์˜ ์ด๋™์„ ๋•์Šต๋‹ˆ๋‹ค. ์ƒˆ๋กœ์šด ์Šคํฌ๋ฆฐ์ด ํ‘œ์‹œ๋˜๋ฉด, ์ฃผ๋กœ ์ด์ „ ํ™”๋ฉด์˜ ์ด๋ฆ„์„ ๋ผ๋ฒจ๋กœ ๊ฐ€์ง€๋Š” ๋’ค๋กœ ๊ฐ€๊ธฐ ๋ฒ„ํŠผ์ด ๊ฐ€์žฅ ์™ผ์ชฝ์— ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. ์–ด๋–ค ๊ฒฝ์šฐ์—๋Š” ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”์˜ ์˜ค๋ฅธ์ชฝ ์˜์—ญ์ด Edit์ด๋‚˜ Done๊ณผ ๊ฐ™์€ Control์„ ํฌํ•จํ•˜์—ฌ ํ˜„์žฌ ๋ทฐ์˜ ์ปจํ…์ธ ๋“ค์„ ์กฐ์ž‘ํ•˜๋„๋ก ํ•˜๊ธฐ๋„ ํ•ฉ๋‹ˆ๋‹ค. Split View ๋‚ด์—์„œ๋Š” ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”๊ฐ€ ํ•˜๋‚˜์˜ ๋ถ„๋ฆฌ๋œ ํ™”๋ฉด(Pane)์—๋งŒ ๋‚˜ํƒ€๋‚  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”๋Š” ํˆฌ๋ช…ํ•˜๊ฒŒ ๋งŒ๋“ค๊ฑฐ๋‚˜ ๋ฐฐ๊ฒฝ ์ƒ‰์ƒ์„ ์ง€์ •ํ•  ์ˆ˜ ์žˆ๊ณ , ํ‚ค๋ณด๋“œ๊ฐ€ ํ™”๋ฉด์— ๋‚˜ํƒ€๋‚˜๊ฑฐ๋‚˜, ์ œ์Šค์ฒ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์„ ๋•Œ, ๋˜๋Š” ๋ทฐ์˜ ํฌ๊ธฐ๊ฐ€ ๋ณ€ํ™”ํ•  ๋•Œ ์ˆจ๊ธฐ๋„๋ก ์„ค์ •ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

 

๋” ๋ชฐ์ž…๊ฐ ์žˆ๋Š” ๊ฒฝํ—˜์„ ์œ„ํ•ด ์ž„์‹œ์ ์œผ๋กœ ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ฐ”๋ฅผ ์ˆจ๊ธฐ๋Š” ๊ฒƒ์„ ๊ณ ๋ คํ•ด๋ณด์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, Photos ์•ฑ์€ ์‚ฌ์šฉ์ž๊ฐ€ ํ’€ ์Šคํฌ๋ฆฐ์œผ๋กœ ์‚ฌ์ง„์„ ๋ณผ ๋•Œ ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”์™€ ๋‹ค๋ฅธ ์ธํ„ฐํŽ˜์ด์Šค ์š”์†Œ๋“ค์„ ์ˆจ๊น๋‹ˆ๋‹ค. ๋งŒ์•ฝ ์ด๋Ÿฐ ํ–‰๋™์„ ๊ตฌํ˜„ํ–ˆ๋‹ค๋ฉด, ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”๊ฐ€ ํƒญ๊ณผ ๊ฐ™์€ ๊ฐ„๋‹จํ•œ ์ œ์Šค์ฒ˜๋ฅผ ํ†ตํ•ด ๋ณต๊ตฌ๋  ์ˆ˜ ์žˆ๋„๋ก ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

 

๊ฐœ๋ฐœ์ž ๊ฐ€์ด๋“œ: UINavigationBar

Navigation Bar Titles

  • ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”์— ํ˜„์žฌ ๋ทฐ์˜ ์ œ๋ชฉ์„ ๋ณด์—ฌ์ฃผ์„ธ์š”.
    • ํ•˜์ง€๋งŒ ๋งŒ์•ฝ ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”์— ์ œ๋ชฉ์„ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ์ด ์ค‘๋ณต๋˜๋Š” ํ–‰๋™์ด๋ผ๋ฉด ์ œ๋ชฉ์€ ๋น„์›Œ๋‘์–ด๋„ ์ข‹์Šต๋‹ˆ๋‹ค.
    • ์˜ˆ๋ฅผ ๋“ค์–ด, Notes ์•ฑ์€ ์ปจํ…์ธ ์— ์ฒซ ๋ผ์ธ์— ํ˜„์žฌ ๋ทฐ์— ๋Œ€ํ•œ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•˜๋ฏ€๋กœ ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”์— ์ œ๋ชฉ์„ ๋น„์›Œ๋‘ก๋‹ˆ๋‹ค.
  • ํ˜„์žฌ ๋ทฐ์˜ ์ •๋ณด๋ฅผ ๋” ๊ฐ•์กฐํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด ํฐ ํฌ๊ธฐ์˜ ์ œ๋ชฉ์„ ์‚ฌ์šฉํ•˜์„ธ์š”.
    • ์–ด๋–ค ์•ฑ์—์„œ๋Š” ํฐ ๋ณผ๋“œ์ฒด์˜ ํ…์ŠคํŠธ๋กœ ์ž‘์„ฑ๋œ ์ œ๋ชฉ์ด ์‚ฌ๋žŒ๋“ค์ด ํƒ์ƒ‰์„ ํ•˜๊ฑฐ๋‚˜ ๊ฒ€์ƒ‰์„ ํ•  ๋•Œ๋ฅผ ๋•์Šต๋‹ˆ๋‹ค.
    • ์˜ˆ๋ฅผ ๋“ค์–ด, tabbed layout ์—์„œ๋Š” ํฐ ์ œ๋ชฉ์ด ๋ช…๋ฃŒํ•˜๊ฒŒ ํƒญ์ด ํ™œ์„ฑํ™” ๋˜์–ด์žˆ์Œ์„ ์•Œ๋ฆฌ๊ณ  ์‚ฌ๋žŒ๋“ค์—๊ฒŒ ๊ฐ€์žฅ ์œ„๋กœ ์Šคํฌ๋กค ํ•ด์•ผ๋œ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ๋ฆฝ๋‹ˆ๋‹ค. Phone ์•ฑ์ด ์ด๋Ÿฐ ์ ‘๊ทผ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. Music ์•ฑ์€ ์•จ๋ฒ”, ์•„ํ‹ฐ์ŠคํŠธ, ํ”Œ๋ ˆ์ด๋ฆฌ์ŠคํŠธ, ๋ผ๋””์˜ค์™€ ๊ฐ™์€ ์ปจํ…์ธ  ์˜์—ญ๊ณผ ๊ตฌ๋ถ„ ์ง“๋Š” ์šฉ๋„๋กœ ํฐ ์ œ๋ชฉ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
    • iOS 13 ์ด์ƒ์—์„œ๋Š” ํฐ ์ œ๋ชฉ์˜ ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”๋Š” ๋ฐฐ๊ฒฝ ์š”์†Œ๋‚˜ ๊ทธ๋ฆผ์žํšจ๊ณผ๋ฅผ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ ๊ฐ€์ง€์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ, ์‚ฌ์šฉ์ž๊ฐ€ ์ปจํ…์ธ ๋ฅผ ์Šคํฌ๋กคํ•˜๊ธฐ ์‹œ์ž‘ํ•˜๋ฉด ํฐ ์ œ๋ชฉ์—์„œ์˜ ์ผ๋ฐ˜ ์ œ๋ชฉ์œผ๋กœ์˜ ์ „ํ™˜ํšจ๊ณผ๊ฐ€ ์ผ์–ด๋‚ฉ๋‹ˆ๋‹ค.
    • ๊ฐœ๋ฐœ์ž ๊ฐ€์ด๋“œ: prefersLargeTitles
  • ํฐ ์ œ๋ชฉ์˜ ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ฐ”๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ๋Š” ํ…Œ๋‘๋ฆฌ๋ฅผ ์ˆจ๊ธฐ์„ธ์š”.
    • iOS 13 ์ด์ƒ์—์„œ๋Š” ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”์˜ ํ•˜๋‹จ ํ…Œ๋‘๋ฆฌ์˜ ๊ทธ๋ฆผ์žํšจ๊ณผ๋ฅผ ์—†์• ๋Š” ๊ฒƒ์œผ๋กœ ์ˆจ๊ธธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค(ํ…Œ๋‘๋ฆฌ๋Š” ์‚ฌ์šฉ์ž๊ฐ€ ์ปจํ…์ธ  ์˜์—ญ์„ ์Šคํฌ๋กค ํ•˜๋ฉด ์ž๋™์œผ๋กœ ๋‹ค์‹œ ๋‚˜ํƒ€๋‚ฉ๋‹ˆ๋‹ค).
    • ํ…Œ๋‘๋ฆฌ๊ฐ€ ์—†๋Š” ์Šคํƒ€์ผ์€ ๊ธฐ์กด์˜ ํ‘œ์ค€ ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ฐ”์™€๋Š” ์ž˜ ์–ด์šธ๋ฆฌ์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๋„ค๋น„๊ฒŒ์ด์…˜๋ฐ”์˜ ์ œ๋ชฉ๊ณผ ๋ฒ„ํŠผ์ด ๋ช…ํ™•ํ•˜๊ฒŒ ๋ณด์ด์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • iPad์—์„œ์˜ Split View๋Š” ์˜ˆ์™ธ์ ์ธ ์ƒํ™ฉ์œผ๋กœ ๋‚˜๋ˆ„์–ด์ง„ ๋‘ ๋ทฐ์˜ ์ผ๊ด€์„ฑ์„ ์œ ์ง€ํ•˜๊ธฐ ์œ„ํ•ด ๋‘ ๋ทฐ์— ๋ชจ๋‘ ํ…Œ๋‘๋ฆฌ๊ฐ€ ์—†๋Š” ์Šคํƒ€์ผ์„ ์ ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Navigation Bar Controls

  • ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ฐ”๊ฐ€ ์ง€๋‚˜์น˜๊ฒŒ ๋งŽ์€ control๋กœ ๋ณต์žกํ•ด์ง€์ง€ ์•Š๋„๋ก ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
    • ์ผ๋ฐ˜์ ์œผ๋กœ ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”๋Š” ํ˜„์žฌ ๋ทฐ์˜ ์ œ๋ชฉ, ๋’ค๋กœ๊ฐ€๊ธฐ ๋ฒ„ํŠผ๊ณผ ํ•˜๋‚˜์˜ control ์™ธ์˜ ์š”์†Œ๋“ค์„ ํฌํ•จํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
    • ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”์— segmented control์„ ์‚ฌ์šฉํ•˜๊ณ ์ž ํ•œ๋‹ค๋ฉด, ๊ทธ ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”๋Š” segmented control ์™ธ์˜ ์ œ๋ชฉ์ด๋‚˜ ๋‹ค๋ฅธ control๋“ฑ์˜ ์š”์†Œ๋“ค์„ ํฌํ•จํ•ด์„œ๋Š” ์•ˆ๋ฉ๋‹ˆ๋‹ค.
  • ํ‘œ์ค€ ๋’ค๋กœ ๊ฐ€๊ธฐ ๋ฒ„ํŠผ์„ ์‚ฌ์šฉํ•˜์„ธ์š”.
    • ๋งŒ์•ฝ ์ปค์Šคํ…€ ๋ฒ„ํŠผ์„ ๋งŒ๋“ ๋‹ค๊ณ  ํ•˜๋”๋ผ๋„ ๋‹ค๋ฅธ ์ธํ„ฐํŽ˜์ด์Šค๋“ค๊ณผ ์ผ๊ด€์„ฑ์ด ์žˆ๋„๋ก ์—ฌ์ „ํžˆ ํ‘œ์ค€๊ณผ ๋น„์Šทํ•œ ๋ชจ์–‘์„ ์œ ์ง€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
  • ์—ฌ๋Ÿฌ ๊ฐœ์˜ Breadcrumb Path๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์•ˆ ๋ฉ๋‹ˆ๋‹ค.
    • ๋’ค๋กœ ๊ฐ€๊ธฐ ๋ฒ„ํŠผ์€ ํ•ญ์ƒ ์ด์ „ ํ™”๋ฉด์œผ๋กœ ๋Œ์•„๊ฐ€๋Š” ํ•˜๋‚˜์˜ ๋™์ž‘๋งŒ์„ ์ˆ˜ํ–‰ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๋งŒ์•ฝ ๋‹น์‹ ์ด ์‚ฌ์šฉ์ž๋“ค์ด ํŽ˜์ด์ง€์˜ ๋ชจ๋“  ๊ฒฝ๋กœ๋ฅผ ์•Œ์•„์•ผ ํ•œ๋‹ค๊ณ  ์ƒ๊ฐํ•œ๋‹ค๋ฉด, ์•ฑ์˜ ๊ณ„์ธต๊ตฌ์กฐ๋ฅผ ๋‹จ์ˆœํ•˜๊ฒŒ ํ•˜๋Š” ๊ฒƒ์„ ๊ณ ๋ คํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
  • ํ…์ŠคํŠธ ๋ฒ„ํŠผ์—๊ฒŒ๋Š” ์ถฉ๋ถ„ํ•œ ๊ณต๊ฐ„์„ ํ™•๋ณดํ•ด์ฃผ์„ธ์š”.
    • ๋งŒ์•ฝ ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”์— ์—ฌ๋Ÿฌ ๊ฐœ์˜ ํ…์ŠคํŠธ ๋ฒ„ํŠผ์„ ์ถ”๊ฐ€ํ•œ๋‹ค๋ฉด, ํ…์ŠคํŠธ ๋ฒ„ํŠผ์ด ์•Œ์•„๋ณด๊ธฐ ํž˜๋“ค ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.
    • ๋ฒ„ํŠผ ์‚ฌ์ด์— ๊ณ ์ •๋œ ๊ณต๊ฐ„์„ ๋ถ€์—ฌํ•ด์„œ ๊ตฌ๋ถ„๋˜๋„๋ก ๋งŒ๋“ค์–ด์ฃผ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
    • ๊ฐœ๋ฐœ์ž ๊ฐ€์ด๋“œ: UIBarButtonSystemItemFixedSpace / UIBarButtonItem
  • ์•ฑ์˜ ์ •๋ณด ๊ณ„์ธต์„ ๋‹จ์ˆœํ™”ํ•˜๊ธฐ ์œ„ํ•ด Segmented Control์˜ ์‚ฌ์šฉ์„ ๊ณ ๋ คํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
    • ๋งŒ์•ฝ ๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ”์— Segmented Control์„ ์‚ฌ์šฉํ•œ๋‹ค๋ฉด, ์ตœ์ƒ์œ„ ๊ณ„์ธต์—์„œ๋งŒ ์‚ฌ์šฉํ•˜์„ธ์š”.
    • ๊ทธ๋ฆฌ๊ณ  ํ•˜์œ„ ๊ณ„์ธต์—์„œ๋Š” ์ ์ ˆํ•œ ๋’ค๋กœ ๊ฐ€๊ธฐ ๋ฒ„ํŠผ ์ œ๋ชฉ์„ ์„ ์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

'๐ŸŽ ์•„์ด-์˜ค-์—์Šค > ๐Ÿ“บ ํžˆ-๊ทธ' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[HIG] Bars - Tab Bars  (0) 2021.08.21
[HIG] Bars - Status Bars  (0) 2021.08.21
[HIG] Bars - Search Bars  (0) 2021.08.21
[HIG] iOS - Interface Essentials  (0) 2021.08.21
[HIG] iOS - Themes  (0) 2021.08.21