The return type of functions that do not return normally, that is, a type with no values.

사용처


반환형에 사용

→ 해당 함수는 반환되지 않을 것임을 알려줌

→ exit(), fatalError() 등을 일으키는 메서드, 함수

🔥 Error 타입이 들어가는 자리에 사용

자료


Apple Developer Documentation

Never keyword in Swift: return type explained with code examples