Development/iOS
[SOLVED][SwiftUI] Invalid redeclaration of structName
Best Junior
2023. 3. 31. 08:14
1. 문제 상황
StudentTransactionDetail 이라는 것에 대해 잘못된 재선언을 했다는 에러입니다.
Invalid redeclaration of 'StudentTransactionDetail'
2. 문제 원인
찾아보니, 다른 곳에서 동일한 이름의 struct가 있었습니다.
3. 해결 방법
struct & class 이름은 고유해야하니 수정해주어 중복되지 않게 변경해줍니다.