Fix title for Logs
This commit is contained in:
@@ -103,7 +103,8 @@ class LogCoordinator {
|
|||||||
ScrollView {
|
ScrollView {
|
||||||
LogUITextView(logs: logs, searchText: searchText)
|
LogUITextView(logs: logs, searchText: searchText)
|
||||||
.font(font)
|
.font(font)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
// Explicit height ensures navigation bar large title collapse animation works correctly with UITextView
|
||||||
|
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
|
||||||
.padding()
|
.padding()
|
||||||
.id("logContent")
|
.id("logContent")
|
||||||
}
|
}
|
||||||
@@ -145,6 +146,8 @@ class LogCoordinator {
|
|||||||
textView.font = Self.monoFont
|
textView.font = Self.monoFont
|
||||||
textView.textColor = Self.defaultColor
|
textView.textColor = Self.defaultColor
|
||||||
textView.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
|
textView.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
|
||||||
|
// Low hugging priority allows expansion to fill available space for proper ScrollView integration
|
||||||
|
textView.setContentHuggingPriority(.defaultLow, for: .vertical)
|
||||||
return textView
|
return textView
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user