mirror of
https://github.com/yattee/yattee.git
synced 2025-10-14 19:38:13 +00:00
Performance improvements
This commit is contained in:
@@ -103,7 +103,7 @@ struct VideoDescription: View {
|
||||
}
|
||||
|
||||
func updateUIView(_: UIViewType, context _: Context) {
|
||||
customizeLabel()
|
||||
updatePreferredMaxLayoutWidth()
|
||||
}
|
||||
|
||||
func customizeLabel() {
|
||||
@@ -143,6 +143,10 @@ struct VideoDescription: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func updatePreferredMaxLayoutWidth() {
|
||||
label.preferredMaxLayoutWidth = (detailsSize?.width ?? 330) - 30
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user