fix(store): revert non-image elements to original, stretch only cover image
This commit is contained in:
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"colors" : [
|
|
||||||
{
|
|
||||||
"idiom" : "universal",
|
|
||||||
"color" : {
|
|
||||||
"color-space" : "srgb",
|
|
||||||
"components" : {
|
|
||||||
"red" : "0.9529411764705882",
|
|
||||||
"green" : "0.9607843137254902",
|
|
||||||
"blue" : "0.9686274509803922",
|
|
||||||
"alpha" : "1.0000000000000000"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"info" : {
|
|
||||||
"author" : "xcode",
|
|
||||||
"version" : 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
{
|
|
||||||
"images": [
|
|
||||||
{
|
|
||||||
"idiom": "universal",
|
|
||||||
"filename": "login_light.png",
|
|
||||||
"scale": "1x"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom": "universal",
|
|
||||||
"scale": "2x"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom": "universal",
|
|
||||||
"scale": "3x"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom": "universal",
|
|
||||||
"filename": "login_dark.png",
|
|
||||||
"scale": "1x",
|
|
||||||
"appearances": [
|
|
||||||
{
|
|
||||||
"appearance": "luminosity",
|
|
||||||
"value": "dark"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom": "universal",
|
|
||||||
"scale": "2x",
|
|
||||||
"appearances": [
|
|
||||||
{
|
|
||||||
"appearance": "luminosity",
|
|
||||||
"value": "dark"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"idiom": "universal",
|
|
||||||
"scale": "3x",
|
|
||||||
"appearances": [
|
|
||||||
{
|
|
||||||
"appearance": "luminosity",
|
|
||||||
"value": "dark"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"info": {
|
|
||||||
"version": 1,
|
|
||||||
"author": "xcode"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 MiB |
@@ -11,16 +11,14 @@ extension StoreDetailView {
|
|||||||
Rectangle()
|
Rectangle()
|
||||||
.fill(AppColors.backgroundLight)
|
.fill(AppColors.backgroundLight)
|
||||||
.frame(height: max(0, topSectionHeight - coverVisibleUntilY))
|
.frame(height: max(0, topSectionHeight - coverVisibleUntilY))
|
||||||
.offset(y: coverVisibleUntilY - stretchAmount)
|
.offset(y: coverVisibleUntilY)
|
||||||
|
|
||||||
summaryCard
|
summaryCard
|
||||||
.padding(.horizontal, 16)
|
.padding(.horizontal, 16)
|
||||||
.padding(.top, cardTopInset)
|
.padding(.top, cardTopInset)
|
||||||
.offset(y: -stretchAmount)
|
|
||||||
|
|
||||||
storeLogoBadge
|
storeLogoBadge
|
||||||
.padding(.top, cardTopInset - (storeLogoSize / 2))
|
.padding(.top, cardTopInset - (storeLogoSize / 2))
|
||||||
.offset(y: -stretchAmount)
|
|
||||||
}
|
}
|
||||||
.frame(height: topSectionHeight)
|
.frame(height: topSectionHeight)
|
||||||
}
|
}
|
||||||
@@ -39,7 +37,6 @@ extension StoreDetailView {
|
|||||||
)
|
)
|
||||||
.frame(height: topSectionHeight)
|
.frame(height: topSectionHeight)
|
||||||
.ignoresSafeArea(.container, edges: .top)
|
.ignoresSafeArea(.container, edges: .top)
|
||||||
.offset(y: -stretchAmount)
|
|
||||||
.allowsHitTesting(false)
|
.allowsHitTesting(false)
|
||||||
|
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
@@ -69,7 +66,6 @@ extension StoreDetailView {
|
|||||||
.foregroundStyle(Color.white.opacity(0.92))
|
.foregroundStyle(Color.white.opacity(0.92))
|
||||||
.padding(.bottom, 14)
|
.padding(.bottom, 14)
|
||||||
}
|
}
|
||||||
.offset(y: -stretchAmount)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user