ä»æ¥ãããããªãã¤ã¼ãã®è£è¶³ãã¤ã¼ãããããã¨ãã¤ã¤ãããé·ããªããããªã®ã§ãããè¨äºã«ãã¾ãã( ´・â¿ï½¥ï½) aaä¸ã®ä¾ã¯ããcaseã使ããã¨ã guard payload.aps.category == .dog else { return } ã¨æ¸ãã°è¯ãã®ã«ãã¨æããããã§ã確ãã«ããæ¸ããæã¯ããããã¿ã¼ããªã¨æã£ã¦ãã¾ãã æ¹ãã¦æ¸ãã¨ã次ã®ãããªæãã§ãã enum Animal { case ð¶, ð± } let animal = Animal.ð¶ if animal == .ð¶ { print("ã¤ããð¶") }ã§ã¯ã次ã®ããã« associated valueããã¤åæåã®æã¯ã©ãã§ããããï¼ enum Animal2 { case ð¶(name: String), ð± }let animal2 = Animal2.ð¶(name: "mono") i
{{#tags}}- {{label}}
{{/tags}}