Skip to content

Commit

Permalink
[design] #154 ConteneList 뒤로가기 버튼 아이패드 분기
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Nov 6, 2024
1 parent 58432e3 commit 0205406
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import SwiftUI

import ComposableArchitecture
import DSKit
import Util

@ViewAction(for: ContentListFeature.self)
public struct ContentListView: View {
Expand Down Expand Up @@ -131,10 +132,14 @@ private extension ContentListView {

var toolbar: some View {
PokitHeader(title: store.contentType.title) {
PokitHeaderItems(placement: .leading) {
PokitToolbarButton(.icon(.arrowLeft)) {
send(.dismiss)
if Device.isPhone {
PokitHeaderItems(placement: .leading) {
PokitToolbarButton(.icon(.arrowLeft)) {
send(.dismiss)
}
}
} else {
Spacer()
}
}
.padding(.top, 8)
Expand Down

0 comments on commit 0205406

Please sign in to comment.