Skip to content

Commit 24c1921

Browse files
authored
[#515] iPhone일때 UI가 화면에 꽉 차지 않는 현상을 해결한다 (#517)
* fix: iPad 윈도우 리사이징 plist 설정 복원 * chore: 불필요 키 제거 * fix: ProfileView에서 툴바 버튼이 보이지 않던 현상 해결 * refactor: Setting -> Settings 로 이름 수정
1 parent fbc0732 commit 24c1921

12 files changed

Lines changed: 77 additions & 51 deletions

File tree

Application/DevLogApp/Sources/Resource/Info.plist

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1515
<key>CFBundleInfoDictionaryVersion</key>
1616
<string>6.0</string>
17+
<key>CFBundleDisplayName</key>
18+
<string>DevLog</string>
1719
<key>CFBundleName</key>
1820
<string>$(PRODUCT_NAME)</string>
1921
<key>CFBundlePackageType</key>
@@ -42,13 +44,37 @@
4244
<string>$(CLIENT_ID)</string>
4345
<key>GITHUB_CLIENT_ID</key>
4446
<string>$(GITHUB_CLIENT_ID)</string>
47+
<key>ITSAppUsesNonExemptEncryption</key>
48+
<false/>
49+
<key>LSApplicationCategoryType</key>
50+
<string>public.app-category.productivity</string>
4551
<key>LSRequiresIPhoneOS</key>
4652
<true/>
4753
<key>PRIVACY_POLICY_URL</key>
4854
<string>$(PRIVACY_POLICY_URL)</string>
55+
<key>UIApplicationSceneManifest</key>
56+
<dict>
57+
<key>UIApplicationSupportsMultipleScenes</key>
58+
<true/>
59+
</dict>
60+
<key>UIApplicationSupportsIndirectInputEvents</key>
61+
<true/>
4962
<key>UIBackgroundModes</key>
5063
<array>
5164
<string>remote-notification</string>
5265
</array>
66+
<key>UILaunchScreen</key>
67+
<dict/>
68+
<key>UISupportedInterfaceOrientations</key>
69+
<array>
70+
<string>UIInterfaceOrientationPortrait</string>
71+
</array>
72+
<key>UISupportedInterfaceOrientations~ipad</key>
73+
<array>
74+
<string>UIInterfaceOrientationLandscapeLeft</string>
75+
<string>UIInterfaceOrientationLandscapeRight</string>
76+
<string>UIInterfaceOrientationPortrait</string>
77+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
78+
</array>
5379
</dict>
5480
</plist>

Application/DevLogPresentation/DevLogPresentation.xcodeproj/project.pbxproj

Lines changed: 36 additions & 36 deletions
Large diffs are not rendered by default.

Application/DevLogPresentation/Sources/Main/MainView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,13 @@ struct MainView: View {
359359
TodoDetailView(viewModel: profileViewCoordinator.makeTodoDetailViewModel(todoId: todoId))
360360
.id(todoId)
361361
case .settings:
362-
SettingView(viewModel: profileViewCoordinator.settingViewModel)
362+
SettingsView(viewModel: profileViewCoordinator.settingsViewModel)
363363
.environment(profileViewCoordinator.router)
364364
case .theme:
365365
ThemeView(
366366
theme: Binding(
367-
get: { profileViewCoordinator.settingViewModel.state.theme },
368-
set: { profileViewCoordinator.settingViewModel.send(.setTheme($0)) }
367+
get: { profileViewCoordinator.settingsViewModel.state.theme },
368+
set: { profileViewCoordinator.settingsViewModel.send(.setTheme($0)) }
369369
)
370370
)
371371
case .pushNotification:

Application/DevLogPresentation/Sources/Profile/ProfileView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ struct ProfileView: View {
2727
profileContentView
2828
}
2929
}
30-
.toolbar { profileToolbarContent }
3130
.onChange(of: focused) { _, newValue in
3231
withAnimation {
3332
coordinator.viewModel.send(.updateStatusTextFieldFocus(newValue))
@@ -127,6 +126,7 @@ struct ProfileView: View {
127126
.refreshable { coordinator.viewModel.send(.refresh) }
128127
.frame(maxWidth: .infinity)
129128
.background(Color(.systemGroupedBackground))
129+
.toolbar { profileToolbarContent }
130130
}
131131

132132
@ToolbarContentBuilder
@@ -148,15 +148,15 @@ struct ProfileView: View {
148148
private func profileDestinationView(_ route: ProfileRoute) -> some View {
149149
switch route {
150150
case .settings:
151-
SettingView(viewModel: coordinator.settingViewModel)
151+
SettingsView(viewModel: coordinator.settingsViewModel)
152152
.environment(coordinator.router)
153153
case .activity(let todoId):
154154
TodoDetailView(viewModel: coordinator.makeTodoDetailViewModel(todoId: todoId))
155155
case .theme:
156156
ThemeView(
157157
theme: Binding(
158-
get: { coordinator.settingViewModel.state.theme },
159-
set: { coordinator.settingViewModel.send(.setTheme($0)) }
158+
get: { coordinator.settingsViewModel.state.theme },
159+
set: { coordinator.settingsViewModel.send(.setTheme($0)) }
160160
)
161161
)
162162
case .pushNotification:

Application/DevLogPresentation/Sources/Profile/ProfileViewCoordinator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import DevLogDomain
1313
@Observable
1414
final class ProfileViewCoordinator {
1515
let viewModel: ProfileViewModel
16-
let settingViewModel: SettingViewModel
16+
let settingsViewModel: SettingsViewModel
1717
var router = NavigationRouter<ProfileRoute>()
1818
private let container: DIContainer
1919

@@ -27,7 +27,7 @@ final class ProfileViewCoordinator {
2727
fetchHeatmapActivityTypesUseCase: container.resolve(FetchHeatmapActivityTypesUseCase.self),
2828
updateHeatmapActivityTypesUseCase: container.resolve(UpdateHeatmapActivityTypesUseCase.self)
2929
)
30-
self.settingViewModel = SettingViewModel(
30+
self.settingsViewModel = SettingsViewModel(
3131
deleteAuthUseCase: container.resolve(DeleteAuthUseCase.self),
3232
signOutUseCase: container.resolve(SignOutUseCase.self),
3333
networkConnectivityUseCase: container.resolve(ObserveNetworkConnectivityUseCase.self),

Application/DevLogPresentation/Sources/Setting/AccountView.swift renamed to Application/DevLogPresentation/Sources/Settings/AccountView.swift

File renamed without changes.

Application/DevLogPresentation/Sources/Setting/AccountViewModel.swift renamed to Application/DevLogPresentation/Sources/Settings/AccountViewModel.swift

File renamed without changes.

Application/DevLogPresentation/Sources/Setting/PushNotificationSettingsView.swift renamed to Application/DevLogPresentation/Sources/Settings/PushNotificationSettingsView.swift

File renamed without changes.

Application/DevLogPresentation/Sources/Setting/PushNotificationSettingsViewModel.swift renamed to Application/DevLogPresentation/Sources/Settings/PushNotificationSettingsViewModel.swift

File renamed without changes.

Application/DevLogPresentation/Sources/Setting/SettingView.swift renamed to Application/DevLogPresentation/Sources/Settings/SettingsView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// SettingView.swift
2+
// SettingsView.swift
33
// DevLogPresentation
44
//
55
// Created by opfic on 5/6/25.
@@ -8,9 +8,9 @@
88
import SwiftUI
99
import DevLogDomain
1010

11-
struct SettingView: View {
11+
struct SettingsView: View {
1212
@Environment(NavigationRouter<ProfileRoute>.self) private var router
13-
@State var viewModel: SettingViewModel
13+
@State var viewModel: SettingsViewModel
1414

1515
var body: some View {
1616
let connected = viewModel.state.isNetworkConnected

0 commit comments

Comments
 (0)