LiveActivities design fix

- Fixed issue where long subject names did not fit. 
- Formatting improvements on DynamicIsland and LockScreen notifications. 
- Smarter wrapping for long subjects.
- *I forgot to add a line break when there is a break, so I added it.*
This commit is contained in:
Geryy 2024-05-09 16:11:43 +02:00 committed by GitHub
parent 56a0c2c02e
commit bbe53b8c01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -164,10 +164,10 @@ struct LiveCardWidget: Widget {
Text("Az első órád:")
.font(.body)
.bold()
.padding(.leading, 15)
MultilineTextView(text: "\(context.state.index) \(context.state.title)", limit: 25)
.padding(.trailing, -15)
MultilineTextView(text: "\(context.state.nextSubject)", limit: 25)
.font(.body)
.padding(.leading, 15)
.padding(.trailing, -25)
Text("Ebben a teremben:")
.font(.body)