<aside> 💡 모든 스트링은 실수, 오타를 유발할 수 있기 때문에 constants로 관리해주어야 한다.

</aside>

  1. String 사용 횟수를 줄이기.

  2. Constants file 생성

    1. new file 'Constants.swift'
    2. static 변수 생성.
    struct Constants {
        // static = 정적 변수로 만들어서 인스턴스화 없이 사용하기
        static let registerSegue = "RegisterToChat"
        static let loginSegue = "LoginToChat"
    }
    
    struct K {
    	불라불라
    }
    

    Properties - The Swift Programming Language (Swift 5.5)

Why use K keyword for Constants

&ref

https://docs.swift.org/swift-book/LanguageGuide/Properties.html#ID264

https://docs.swift.org/swift-book/LanguageGuide/TheBasics.html

Introduction to Coding Guidelines for Cocoa