Skip to content

Commit 5303656

Browse files
committed
[feat] #196 PokitBottomButton 그라디언트 효과 반영
1 parent 3234b40 commit 5303656

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Projects/Feature/FeatureCategorySetting/Sources/PokitCategorySettingView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,10 @@ public extension PokitCategorySettingView {
3939
Spacer()
4040
}
4141
.padding(.top, 16)
42+
.padding(.horizontal, 20)
4243
.overlay(alignment: .bottom) {
4344
saveButton
44-
.padding(.bottom, store.isKeyboardVisible ? -26 : 0)
45-
.padding(.bottom, 36)
4645
}
47-
.padding(.horizontal, 20)
4846
.padding(.top, 16)
4947
// .pokitMaxWidth()
5048
.pokitNavigationBar { navigationBar }
@@ -209,6 +207,8 @@ private extension PokitCategorySettingView {
209207
: .disable,
210208
action: { send(.저장_버튼_눌렀을때) }
211209
)
210+
.gradientBackground()
211+
.keyboardAnchor(store.isKeyboardVisible)
212212
}
213213
/// 내포킷 Item
214214
struct PokitItem: View {

Projects/Feature/FeatureContentSetting/Sources/ContentSetting/ContentSettingView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,21 @@ public extension ContentSettingView {
5454
}
5555
.pokitMaxWidth()
5656
}
57-
57+
}
58+
.overlay(alignment: .bottom) {
5859
let isDisable = store.urlText.isEmpty ||
5960
store.title.isEmpty ||
6061
store.memoTextAreaState == .error(message: "최대 100자까지 입력가능합니다.")
6162

6263
PokitBottomButton(
6364
"저장하기",
6465
state: isDisable ? .disable : .filled(.primary),
65-
isLoading: $store.saveIsLoading,
6666
action: { send(.저장_버튼_눌렀을때) }
6767
)
68-
.padding(.horizontal, 20)
68+
.gradientBackground()
69+
.loading($store.saveIsLoading)
70+
.keyboardAnchor(store.isKeyboardVisible)
6971
.pokitMaxWidth()
70-
.padding(.bottom, store.isKeyboardVisible ? -26 : 0)
71-
.padding(.bottom, 36)
7272
}
7373
.pokitNavigationBar { navigationBar }
7474
.dismissKeyboard(focused: $focusedType)

0 commit comments

Comments
 (0)