Skip to content

Commit

Permalink
Merge pull request #3 from palle-k/master
Browse files Browse the repository at this point in the history
Makes back button easier to tap and more consistent with stock UINavigationBar
  • Loading branch information
nerdsupremacist authored Jun 18, 2020
2 parents d9c594d + 1f9eea0 commit 5240ad5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Sources/FancyScrollView/BackButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ struct BackButton: View {
presentationMode.wrappedValue.isPresented ?
Button(action: { self.presentationMode.wrappedValue.dismiss() }) {
Image(systemName: "chevron.left")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(height: 20, alignment: .leading)
.foregroundColor(color)
}
.padding(.horizontal, 16) : nil
.padding(.horizontal, 16)
.font(Font.body.bold())
} : nil
}
}

0 comments on commit 5240ad5

Please sign in to comment.