Skip to content

Commit

Permalink
[wip] comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelHolec committed Jun 22, 2022
1 parent 5bc12d9 commit deb7ee6
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions Sources/Orbit/Foundation/Elevations/Elevation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct ElevationModifier: ViewModifier {
.shadow(color: shadowColor.opacity(0.11), radius: 8, y: 8)
.shadow(color: shadowColor.opacity(0.10), radius: 16, y: 16)
.shadow(color: shadowColor.opacity(0.09), radius: 32, y: 32)
.padding(.xLarge)
.padding(.xxxLarge)
.drawingGroup(colorMode: .extendedLinear)
}
}
Expand Down Expand Up @@ -119,20 +119,25 @@ struct ElevationPreviews: PreviewProvider {
static var snapshot: some View {
PreviewWrapper {
Image("elevation", bundle: .module)
// .resizable()
// .frame(height: 200)
.padding(.bottom, 300)
.overlay(
HStack(spacing: 75) {
squircle("Level 4")
.elevation(.level4)
squircle("Level 3")
.elevation(.level3)
squircle("Level 2")
.elevation(.level2)
squircle("Level 1")
.elevation(.level1)
VStack {
Text("SwiftUI")
HStack(spacing: 90) {
squircle("Level 4")
.elevation(.level4)
squircle("Level 3")
.elevation(.level3)
squircle("Level 2")
.elevation(.level2)
squircle("Level 1")
.elevation(.level1)
}
}
.offset(x: 50, y: 50)
.padding(.leading, 50)
.offset(x: 0, y: 200)
,
alignment: .leading
)
.previewDisplayName("Prerendered")

Expand Down Expand Up @@ -164,7 +169,7 @@ struct ElevationPreviews: PreviewProvider {

static func squircle(_ title: String) -> some View {
Heading(title, style: .title1)
.frame(width: 260, height: 260)
.frame(width: 240, height: 260)
.background(Color.white)
.clipShape(RoundedRectangle(cornerRadius: BorderRadius.large))
}
Expand Down

0 comments on commit deb7ee6

Please sign in to comment.