Have the nightly label actually fit the icon.
This commit is contained in:
committed by
Stefan Ceriu
parent
1f83aa4335
commit
4bb8dad64d
@@ -52,13 +52,13 @@ struct BannerImage: View {
|
|||||||
.aspectRatio(contentMode: .fit)
|
.aspectRatio(contentMode: .fit)
|
||||||
|
|
||||||
Text(text)
|
Text(text)
|
||||||
.frame(maxWidth: .infinity)
|
|
||||||
.padding()
|
|
||||||
.background(Color.black.opacity(0.5))
|
|
||||||
.foregroundColor(.white)
|
.foregroundColor(.white)
|
||||||
.font(.system(size: 140))
|
.font(.system(size: 140))
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.allowsTightening(true)
|
.minimumScaleFactor(0.5)
|
||||||
|
.padding()
|
||||||
|
.background(Color.black.opacity(0.5))
|
||||||
|
.frame(maxWidth: .infinity)
|
||||||
}
|
}
|
||||||
.frame(width: image.size.width, height: image.size.height)
|
.frame(width: image.size.width, height: image.size.height)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user