@hcrane
2018-04-20
swiftではreturnさせたい場合に guard で書く方がxcode側でもエラーを履いてくれるので、if return よりはguard else return の方が適切かと思います。