Skip to content

Commit

Permalink
Merge pull request #2631 from anyproto/ios-3922-space-settings-do-not…
Browse files Browse the repository at this point in the history
…-open-after-tapping-on-the-space-name

IOS-3922 Home | Add tap for header & reduce tap area
  • Loading branch information
mgolovko authored Jan 15, 2025
2 parents a3df419 + eb9dbbe commit d247219
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ struct IncreaseTapButton<Label: View>: View {
@ViewBuilder
let label: Label

init(action: @escaping @MainActor () -> Void, insets: EdgeInsets = EdgeInsets(side: 30), @ViewBuilder label: () -> Label) {
init(action: @escaping @MainActor () -> Void, insets: EdgeInsets = EdgeInsets(side: 15), @ViewBuilder label: () -> Label) {
self.action = action
self.insets = insets
self.label = label()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ struct WidgetsHeaderView: View {
}
Spacer()
}
.fixTappableArea()
.onTapGesture {
model.onTapSpaceSettings()
}
} rightView: {
Image(asset: .X24.spaceSettings)
.foregroundStyle(Color.Control.navPanelIcon)
Expand Down

0 comments on commit d247219

Please sign in to comment.