Чат: вертикальное центрирование bubble вложений, tap-to-download аватар и мгновенный показ call-attachment
This commit is contained in:
15
RosettaLiveActivityWidget/CallActivityAttributes.swift
Normal file
15
RosettaLiveActivityWidget/CallActivityAttributes.swift
Normal file
@@ -0,0 +1,15 @@
|
||||
import ActivityKit
|
||||
import Foundation
|
||||
|
||||
struct CallActivityAttributes: ActivityAttributes {
|
||||
/// Fixed data set when the activity starts.
|
||||
let peerName: String
|
||||
let peerPublicKey: String
|
||||
|
||||
/// Dynamic state updated during the call.
|
||||
struct ContentState: Codable, Hashable {
|
||||
let durationSec: Int
|
||||
let isActive: Bool
|
||||
let isMuted: Bool
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user