Skip to content

Instantly share code, notes, and snippets.

@sukidhar
Created August 15, 2020 14:55
Show Gist options
  • Save sukidhar/3e6aa2c90bbeee8a2997a5b0b0d14bc4 to your computer and use it in GitHub Desktop.
Save sukidhar/3e6aa2c90bbeee8a2997a5b0b0d14bc4 to your computer and use it in GitHub Desktop.
struct TabBarBackgroundView : View {
var body: some View{
HStack(alignment: .bottom,
spacing: 0,
content: {
LinearGradient(gradient: Gradient(colors: [Color(#colorLiteral(red: 0.4117647059, green: 0.5176470588, blue: 1, alpha: 1)),Color(#colorLiteral(red: 0.1333333333, green: 0.2901960784, blue: 1, alpha: 1))]),
startPoint: .top,
endPoint: .bottom)
.frame(width: constants.width,
height: constants.height,
alignment: .bottom)
.cornerRadius(35, corners: [.topLeft, .topRight])
.padding(.top,25)
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment