In fact, it can not triggered on all Mac.
Post
Replies
Boosts
Views
Activity
I finally figure out the problem. It seems that applying .clipShape(...) on RecorderPlayerView will cause the problem.
Just remove the line .clipShape(RoundedRectangle(cornerRadius: 8)) will solve this problem.
RecorderPlayerView(playerView: playerViewModel.playerView)
// .clipShape(RoundedRectangle(cornerRadius: 8)) <-- remove this line
.onAppear {
...
}
Maybe there are some bugs in .clipShape and AVPlayerView in trimming mode.
Just try
enum DayOfTheWeek: String, CaseIterable, Identifiable{
var id: String {self.rawValue}
case monday = "Monday"
case tuesday = "Tuesday"
var description: String {
switch self {
case .monday:
return "it's a great day to have a coffee"
case .tuesday:
return "..."
}
}
}
// it's a great day to have a coffee
let mondayDescription: String = DayOfTheWeek.monday.description
Just declare your model as Identifiable will solve the problem.
It seems that I should make my Agent also be sandboxed.
Is it true the launch agent of a sandboxed app also should be sandboxed? And so as daemon?