ðHIGãã£ãããŸãšã Foundationsç·š vol. 5 ã¬ã€ã¢ãŠã
ã2022幎6æ7æ¥ãAppleã®Human Interface Guidelinesãæ¹èšãããŸããããããæã«ãã£ããèªã¿èŸŒã¿ãå人çèŠç¹ããã®ãã£ãããªãŸãšããèšããŠãããŸãã
â»ç§ã¯ãã©ãŠã¶ã§åãWEBã¢ããªãŒã±ãŒã·ã§ã³ã®UIããã¶ã€ã³ããŠããŸãããã®èŠç¹ãã倧åã ãšæã£ãç¹ãæ®ããŠãã®ã§ã察象å€ã®ããã€ã¹ãåãã©ãããã©ãŒã ã®çŽ°ãããªè©±ã¯ç«¯æã£ãŠããŸãã
LayoutïŒã¬ã€ã¢ãŠãïŒ
ã¬ã€ã¢ãŠãã¬ã€ãã¯ãç»é¢äžã®ã³ã³ãã³ãã®äœçœ®ãé 眮ãééã調æŽããã®ã«åœ¹ç«ã€é·æ¹åœ¢ã®é åãå®çŸ©ããŸããã·ã¹ãã ã«ã¯ãã³ã³ãã³ãã®åšå²ã«æšæºçãªããŒãžã³ãé©çšããèªã¿ããããæé©åããããã«ããã¹ãã®å¹ ãå¶éããããšãç°¡åã«ã§ãããå®çŸ©æžã¿ã¬ã€ã¢ãŠãã¬ã€ããå«ãŸããŠããŸãããŸããã«ã¹ã¿ã ã¬ã€ã¢ãŠãã¬ã€ããå®çŸ©ããããšãã§ããŸãã
SwiftUI ã Auto Layout ã䜿ãããšã§ãããªãã®ã€ã³ã¿ãŒãã§ã€ã¹ãå¹ åºãç¹æ§ãã³ã³ããã¹ãã«åçã«é©å¿ããããã«ããããšãã§ããŸãã
ç°ãªãããã€ã¹ã®ç»é¢ãµã€ãºã解å床ãã«ã©ãŒã¹ããŒã¹
ããŸããŸãªããã€ã¹ã®åãïŒçžŠåãïŒæšªåãïŒã«å¯Ÿå¿
ã¹ããªãããã¥ãŒ
iPadã®å€éšãã£ã¹ãã¬ã€å¯Ÿå¿ãDisplay Zoomããã«ãã¿ã¹ã¯ã¢ãŒããªã©
Dynamic Typeã®æåãµã€ãºå€æŽ
ãã±ãŒã«ã«å¿ããåœéåæ©èœïŒå·Šããå³ãå³ããå·Šã®ã¬ã€ã¢ãŠãæ¹åãæ¥ä»ã»æå»ã»æ°åã®æžåŒããã©ã³ãã®ããªãšãŒã·ã§ã³ãããã¹ãã®é·ãïŒãã·ã¹ãã ã§å®çŸã§ããã
ã·ã¹ãã æ©èœã®æç¡
èŠç¹
ã§ããã ãåãã³ã³ãã³ãã衚瀺ããªãããã³ã³ããã¹ãã®å€åã«åªé ã«é©å¿ããäžè²«ããã¬ã€ã¢ãŠããèšèšããŸãã
ã·ã¹ãã ã§å®çŸ©ãããã»ãŒããšãªã¢ãããŒãžã³ãã¬ã€ããå°éããã¬ã€ã¢ãŠã修食åãæå®ããŠéå±€å ã®ãã¥ãŒã®é 眮ã埮調æŽããããšã§ãé©å¿æ§ã®é«ãã€ã³ã¿ãŒãã§ã€ã¹ã確ä¿ããŸããçžå¯ŸçãªéèŠæ§ãäŒããããã«ãé 眮ã工倫ããã
äžè¬ã«ãäž»èŠãªé ç®ã¯ãç»é¢ãŸãã¯ãŠã£ã³ããŠã®äžååãå é ä»è¿ã«é 眮ããŸããç»é¢ãèŠãŠãã人ããVoiceOverãªã©ã®ã¹ã¯ãªãŒã³ãªãŒããŒã䜿ã£ãŠãã人ããéåžžãã®ãšãªã¢ããå§ããŸããååãªã¹ããŒã¹ã確ä¿ããããšã§ãå¿ èŠãªæ å ±ãäžäœã«è¡šç€ºããŸãã
人ã ã¯æãéèŠãªæ å ±ãç¬æã«èŠãããšæãã®ã§ãç»é¢ããŠã£ã³ããŠãå¿ èŠã®ãªã詳现æ å ±ã§æ£ããããªãããã«ããŸããã¹ã¯ããŒã«ããããšã§ãäºæ¬¡çãªæ å ±ã«ãç°¡åã«ã¢ã¯ã»ã¹ã§ããããã«ããŸããå¿ èŠãªæ å ±ãèŠã€ããããããããã«ãèŠèŠçãªã°ã«ãŒãåããããã
äŸãã°ããã¬ãã£ãã¹ããŒã¹ãèæ¯ã®åœ¢ç¶ãè²ãçŽ æãåºåãç·ãªã©ã䜿ã£ãŠãé¢é£ããèŠçŽ ãæ å ±ãæ確ãªãšãªã¢ã«è¡šç€ºããããšãã§ããŸããèŠèŠçãªã¹ãã£ã³ã容æã«ããçµç¹ãéå±€ãäŒããããã«ãæŽåã䜿çšããŸãã
æŽåã¯ãã¢ããªããã£ãããšæŽçããŠèŠããã¹ã¯ããŒã«äžã®éäžåãé«ããæ å ±ã®æ€çŽ¢ã容æã«ããŸãããŸããã€ã³ãã³ããšã¢ã©ã€ã³ã¡ã³ãã¯ãæ å ±ã®éå±€æ§é ãèŠèŠåããã®ã«ã圹ç«ã¡ãŸããã¢ã¹ãã¯ãæ¯ã«æ³šæããŠãã ããã
ç»é¢ãµã€ãºãç°ãªããšã¢ã¹ãã¯ãæ¯ãç°ãªããããã¢ãŒãã¯ãŒã¯ãåãåãããããã¬ã¿ãŒããã¯ã¹ããã©ãŒããã¯ã¹ã§è¡šç€ºãããããšããããŸãããã®ãããªå Žåãã¢ãŒãã¯ãŒã¯ã®ã¢ã¹ãã¯ãæ¯ãå€æŽãããç»é¢ãã£ã±ãã«æ¡å€§çž®å°ããããšã§ãã©ã®ãã£ã¹ãã¬ã€ãµã€ãºã§ãéèŠãªããžã¥ã¢ã«ã³ã³ãã³ãã衚瀺ããããŸãŸã«ãªããŸããããã¹ããµã€ãºã®å€æŽã«åããã
ã»ãšãã©ã®ã¢ããªã±ãŒã·ã§ã³ã¯ãç°ãªãããã¹ããµã€ãºãéžæãããšãã«ãããã«å¯Ÿå¿ããããšãæåŸ ããŠããŸããããã¹ããµã€ãºã®å€æŽã«å¯Ÿå¿ããããã«ãã¬ã€ã¢ãŠãã調æŽããå¿ èŠãããå ŽåããããŸããå¯èœã§ããã°ãç»é¢å€ã®èŠçŽ ãéšåçã«è¡šç€ºããããšã§ãé ãããã³ã³ãã³ããæ瀺ããããšãæ€èšããŠãã ããã
ã³ã³ãã³ãã1ç»é¢ã«åãŸããªããããªå€§ããªã³ã¬ã¯ã·ã§ã³ã§ã¯ãç»é¢å€ã®ã¢ã€ãã ã®äžéšã衚瀺ããããšã§ãè¿œå ã³ã³ãã³ãã瀺åã§ãããããããŸãããã¿ããã¹ã¯ãªãŒã³ã§ã¯ãã€ã³ã¿ã©ã¯ãã£ããªã³ã³ããŒãã³ãã®ããã«ååãªã¿ããã¿ãŒã²ãããæäŸããŠãã ããã
ãã¹ãŠã®æäœéšã«ã€ããŠãã¿ããå¯èœãªé åã44x44ãã€ã³ã以äžç¢ºä¿ããŠãã ãããè€æ°ã®ããã€ã¹ã§ãç°ãªãæ¹åãããŒã«ã©ã€ãŒãŒã·ã§ã³ãããã³ããã¹ããµã€ãºã䜿ã£ãŠãã¢ããªããã¬ãã¥ãŒããŸãã
äžè¬çã«ãã¯ã€ãã«ã©ãŒãªã©ã®æ©èœã¯å®éã®ããã€ã¹ã§ãã¬ãã¥ãŒããã®ããã¹ãã§ãããXcode Simulatorã䜿çšããŠãã¯ãªããã³ã°ããã®ä»ã®ã¬ã€ã¢ãŠãã®åé¡ããã§ãã¯ããããšãã§ããŸãã
iOS, iPadOS
瞊åããšæšªåãã®äž¡æ¹ããµããŒãããããšãç®æããŸãã
ã¢ããªãåäžã®åãã§åäœããããšãäžå¯æ¬ ãªå Žåã¯ãããã«åãããŠããã€ã¹ãå転ãããããã«æ瀺ããªãã§ãã ãããèªåçã«å転ããªãå ŽåããŠãŒã¶ãŒã¯æ¬èœçã«å転ãããããšãç解ããŸãã暪åãå°çšã®ã¢ããªã®å Žåã¯ãããã€ã¹ãå·Šã«ããŠãå³ã«ããŠãåãããã«åäœããããã«ããŠãã ãããç¹å®ã®ããã€ã¹ã§åäœããã¢ããªã®å Žåããã®ããã€ã¹ã®ãã¹ãŠã®ç»é¢ãµã€ãºã§åäœããããšã確èªããŸãã
ãã«ãŠã£ãã¹ãã¿ã³ã®æ¿å ¥
ãã«ãŠã£ãã¹ãã¿ã³ã®ãµã€ãã¯ãã·ã¹ãã ã§å®çŸ©ãããæšæºçãªããŒãžã³ãå°éããŠãã ãããç»é¢äžéšã®ãã«ãŠã£ãã¹ãã¿ã³ã¯ãäžè¬çã«è§ãäžžããã»ãŒããšãªã¢ã®åºã«æãããã«ãããšèŠæ ããè¯ããªããŸãïŒããã«ãããããŒã ã€ã³ãžã±ãŒã¿ãšè¡çªããªãããã«ããããšãã§ããŸãïŒãããžã¥ã¢ã«ã³ã³ãã³ããç»é¢ãã£ã±ãã«åºããã
èæ¯ã¯ãã£ã¹ãã¬ã€ã®ç«¯ãŸã§ãããŒãã«ãã³ã¬ã¯ã·ã§ã³ãªã©çžŠæ¹åã«ã¹ã¯ããŒã«ã§ããã¬ã€ã¢ãŠãã¯äžãŸã§ç¶ãããã«ããŸãããïŒâã€ãŸãmaxwidthã§ããããã£ãŠããšãã»ã»ã»ïŒãiPadã§ã¯ã暪åãã®ç»é¢ã®äž¡èã«æäœç³»ãé 眮ããããšãæ€èšããŠãã ããã
ç»é¢ã®å·Šå³ã«æäœç³»ããããšãããã€ã¹ãæã£ããŸãŸäž¡æã§ç°¡åã«æäœç³»ã«æãå±ããŸããç»é¢ã®äžç«¯ã«ã€ã³ã¿ã©ã¯ãã£ããªã³ã³ãããŒã«ãé 眮ããããšã¯ãå¯èœãªéãé¿ããŠãã ããã
ãã£ã¹ãã¬ã€ã®äžç«¯ã®ã·ã¹ãã ãžã§ã¹ãã£ãŒãšç«¶åããŠããŸãã
ãŸããç»é¢ã®é ã«æäœç³»ãé 眮ãããšãå¿«é©ã«æã䌞ã°ãããšãå°é£ãªå ŽåããããŸãã
ç»é¢ã®äžéšïŒã»ãŒããšãªã¢ããäžïŒã«ã³ã³ãããŒã«ãé 眮ããå¿ èŠãããå Žåã¯ãç»é¢ã®äžéšãšäžéšã«é 眮ãããšãã«äžèŽããã€ã³ã»ããã䜿çšãã誀ã£ãŠããŒã ã€ã³ãžã±ãŒã¿ã«ãããããªãããã«ããã®åšå²ã«ååãªã¹ããŒã¹ã確ä¿ããŠãã ãããã¹ããŒã¿ã¹ããŒã®é«ããå€ãã£ãŠã倧äžå€«ãªããã«ãæºåããŠãããŸãããã
ã¹ããŒã¿ã¹ããŒã®äžã«ã³ã³ãã³ãã衚瀺ããå Žåãã»ãŒããšãªã¢ã䜿çšããããšã§ãå¿ èŠã«å¿ããŠã³ã³ãã³ããåçã«åé 眮ããããšãã§ããŸããã¹ããŒã¿ã¹ããŒãé ãã®ã¯ããããä»å 䟡å€ãçãããäœéšãåäžããããšãã ãã§ãã
ã¹ããŒã¿ã¹ããŒã«ã¯ã人ã ãæçšãšèããæ å ±ã衚瀺ãããã»ãšãã©ã®ã¢ããªãå®å šã«äœ¿çšããŠããªãç»é¢ã®é åãå ããŠãããããéåžžã¯è¡šç€ºãããŸãŸã«ããŠãããšããã§ãããã
ææ³
倧äºãªãã®ã¯ãªãã¹ãäžäœã«ããèŠèŠçã°ã«ãŒãã³ã°ãªã©ã¯WEBãšãå ±éã
åé ã®ãªã¹ãã«ããããã«ã瞊暪ã®åãã®å€æŽã ãã§ãªããŠè¡šç€ºé åãå€ããã·ãŒã³ã¯è²ã ãã£ãŠãããã€ã¹ãµã€ãºä»¥å€ã®è²ããªè¡šç€ºé åãèæ ®ããªããã°ãããªãã
ããã€ã¹ã®åãåºå®ã®å Žåããã¡ãã¡æ瀺ãåºããªããŠããã¯ã¡ããšæå€ã§ãããããŠãŒã¶ãŒã¯æ¬èœçã«å転ãããããšãç解ããŸããããã¹ããã«ã¿ããªæ £ããŠããã確ãã«ããã ãªãã
ãã«ãŠã£ãã¹ã®ãã¿ã³ã«ã€ããŠãããŒãã®äžžã¿ã«ïŒã«æ²¿ã£ãã»ãŒããšãªã¢ã®åºïŒã«ã³ã³ãã³ãã®ãã¶ã€ã³ãåããããšããçºæ³ã¯ãªãã£ããåè§ã¢ãŒãããŒãäžã§ãã¶ã€ã³ããŠããå¿ãããã
æäœç³»ã®é 眮ã¯ç»é¢ã®åãããµã€ãºããšã«æäœããããäœçœ®ãéããããã«ã·ã¹ãã ãžã§ã¹ãã£ãŒãšç«¶åããªãããã«ãªã©ã®æ³šæãå¿ èŠ
ãã®èšäºãæ°ã«å ¥ã£ãããµããŒããããŠã¿ãŸãããïŒ