mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Update stuff
This commit is contained in:
parent
a4e58b9e70
commit
5b41f2c364
3 changed files with 39 additions and 10 deletions
|
|
@ -314,7 +314,10 @@ struct ExtensionInlineSneakPeekView: View {
|
|||
private let wingPadding: CGFloat = 16
|
||||
|
||||
private var descriptor: AtollLiveActivityDescriptor? { payload?.descriptor }
|
||||
private var resolvedAccent: Color { descriptor?.accentColor.swiftUIColor ?? accentColor }
|
||||
private var resolvedAccent: Color {
|
||||
guard let descriptor else { return accentColor }
|
||||
return descriptor.accentColor.resolvedColor(fallback: accentColor)
|
||||
}
|
||||
private var trailingRenderable: ExtensionTrailingRenderable? {
|
||||
descriptor.map { resolvedExtensionTrailingRenderable(for: $0) }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue