Every time I present an application title using SwiftUI view using Label(some_token)
I get 3x of these logs, which sometimes incurs a noticeable lag in displaying my containing view. Otherwise the icon + title display correctly.
I have tried making the most simple SwiftUI View just containing Label(some_token)
without any other code, no state, no navigation, no transitions, no other views, just that and I still get this - usually in triplicate:
[activityItem] Label is already or no longer part of the view hierarchy
[activityItem] Label is already or no longer part of the view hierarchy
[activityItem] Label is already or no longer part of the view hierarchy
If I use .labelStyle(.titleOnly)
I only see it twice.
Here's the code I used
var body: some View {
VStack {
// uses a static token provided just for testing.
// same behavior regardless of how the token is passed in.
Label(some_static_token)
.labelStyle(.titleOnly)
}
}
Is this log something to be expected?