mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
BugFix: LiveActivity expands too much
This commit is contained in:
parent
e500f5a5b2
commit
f8466c2027
5 changed files with 162 additions and 16 deletions
|
|
@ -40,11 +40,16 @@ private struct AnimationContentView: View {
|
|||
speed: animation.speed,
|
||||
loopMode: .loop
|
||||
))
|
||||
.frame(width: config.cropWidth * config.scale,
|
||||
height: config.cropHeight * config.scale)
|
||||
.frame(
|
||||
width: config.cropWidth * config.scale,
|
||||
height: config.cropHeight * config.scale
|
||||
)
|
||||
.offset(x: config.offsetX, y: config.offsetY)
|
||||
.rotationEffect(.degrees(config.rotation))
|
||||
.opacity(config.opacity)
|
||||
.padding(.bottom, config.paddingBottom)
|
||||
.frame(width: config.expandWithAnimation ? nil : 30, height: 20)
|
||||
.clipped()
|
||||
|
||||
case .lottieURL(let url):
|
||||
LottieView(state: LUStateData(
|
||||
|
|
@ -52,11 +57,16 @@ private struct AnimationContentView: View {
|
|||
speed: animation.speed,
|
||||
loopMode: .loop
|
||||
))
|
||||
.frame(width: config.cropWidth * config.scale,
|
||||
height: config.cropHeight * config.scale)
|
||||
.frame(
|
||||
width: config.cropWidth * config.scale,
|
||||
height: config.cropHeight * config.scale
|
||||
)
|
||||
.offset(x: config.offsetX, y: config.offsetY)
|
||||
.rotationEffect(.degrees(config.rotation))
|
||||
.opacity(config.opacity)
|
||||
.padding(.bottom, config.paddingBottom)
|
||||
.frame(width: config.expandWithAnimation ? nil : 30, height: 20)
|
||||
.clipped()
|
||||
|
||||
case .builtInFace:
|
||||
MinimalFaceFeatures(height: 20, width: 30)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue