Skip to content

Commit

Permalink
refactor: Remove workarounds & edit translations
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuz0u committed Dec 4, 2021
1 parent a89561e commit 123f405
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
14 changes: 0 additions & 14 deletions EhPanda/App/ViewModifiers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,3 @@ struct PreviewResolver {
))
}
}

extension ScrollView {
func swipeBackable() -> some View {
ZStack {
self
HStack {
Color(.systemGray6)
.opacity(0.01)
.frame(width: 40)
Spacer()
}
}
}
}
2 changes: 1 addition & 1 deletion EhPanda/App/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
"Male" = "男性";
"Female" = "女性";
"Mixed" = "混合性别";
"Cosplayer" = "角色扮演者";
"Cosplayer" = "扮装者";
"Other" = "其它";
"Temp" = "临时";

Expand Down
4 changes: 1 addition & 3 deletions EhPanda/View/Detail/DetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ private struct DescScrollView: View {
.withHorizontalSpacing()
}
}
.swipeBackable().frame(height: 60)
.frame(height: 60)
.onReceive(AppNotification.appWidthDidChange.publisher, perform: tryResetItemWidth)
}

Expand Down Expand Up @@ -691,7 +691,6 @@ private struct PreviewView: View {
.withHorizontalSpacing(height: height)
}
}
.swipeBackable()
}
}
}
Expand Down Expand Up @@ -814,7 +813,6 @@ private struct CommentScrollView: View {
}
.drawingGroup()
}
.swipeBackable()
CommentButton(action: toggleCommentAction).padding(.horizontal)
.disabled(!AuthorizationUtil.didLogin)
}
Expand Down

0 comments on commit 123f405

Please sign in to comment.