fix(content): 성인 콘텐츠 설정 동기화와 국가별 인증 분기를 적용한다
This commit is contained in:
@@ -16,6 +16,12 @@ struct SettingsView: View {
|
||||
|
||||
var body: some View {
|
||||
let cardWidth = screenSize().width - 26.7
|
||||
let isAuth = UserDefaults.bool(forKey: .auth)
|
||||
let normalizedCountryCode = UserDefaults
|
||||
.string(forKey: .countryCode)
|
||||
.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
.uppercased()
|
||||
let isNonKoreanCountry = !normalizedCountryCode.isEmpty && normalizedCountryCode != "KR"
|
||||
|
||||
BaseView(isLoading: $viewModel.isLoading) {
|
||||
GeometryReader { geo in
|
||||
@@ -65,7 +71,7 @@ struct SettingsView: View {
|
||||
AppState.shared.setAppStep(step: .languageSettings)
|
||||
}
|
||||
|
||||
if UserDefaults.bool(forKey: .auth) {
|
||||
if isAuth || isNonKoreanCountry {
|
||||
Rectangle()
|
||||
.frame(width: cardWidth - 26.7, height: 0.3)
|
||||
.foregroundColor(Color.gray90)
|
||||
|
||||
Reference in New Issue
Block a user