fix(content): 성인 콘텐츠 설정 동기화와 국가별 인증 분기를 적용한다
This commit is contained in:
@@ -74,6 +74,7 @@ class AppState: ObservableObject {
|
||||
|
||||
@Published var isShowErrorPopup = false
|
||||
@Published var errorMessage = ""
|
||||
@Published private var pendingContentSettingsGuideMessage: String? = nil
|
||||
@Published var liveDetailSheet: LiveDetailSheetState? = nil
|
||||
|
||||
private func syncStepWithNavigationPath() {
|
||||
@@ -180,6 +181,16 @@ class AppState: ObservableObject {
|
||||
pendingCommunityCommentCreatorId = 0
|
||||
pendingCommunityCommentPostId = 0
|
||||
}
|
||||
|
||||
func setPendingContentSettingsGuideMessage(_ message: String) {
|
||||
pendingContentSettingsGuideMessage = message
|
||||
}
|
||||
|
||||
func consumePendingContentSettingsGuideMessage() -> String? {
|
||||
let message = pendingContentSettingsGuideMessage
|
||||
pendingContentSettingsGuideMessage = nil
|
||||
return message
|
||||
}
|
||||
|
||||
// 언어 적용 직후 앱을 소프트 재시작(스플래시 -> 메인)하여 전역 UI를 새로고침
|
||||
func softRestart() {
|
||||
|
||||
Reference in New Issue
Block a user