Posts

Post not yet marked as solved
0 Replies
1.2k Views
Hi, I try to fetch weather information for multiple dates through a single query but I only get information for the first day. let today = Date() let tomorrow = Calendar.current.date(byAdding: DateComponents(day: 1), to: today)! let forecast = try? await WeatherService.shared.weather(for: location, including: .daily(startDate: today, endDate: tomorrow)) Can we get weather information for a range of day?
Posted Last updated
.
Post marked as solved
4 Replies
592 Views
Hello, I presents a View inside a NavigationView. I use the .toolbar modifier to set a navigation bar items. One of them must be in red as it represents a destructive action. .toolbar(content: { ToolbarItem(placement: .navigationBarLeading) { Button { } label: { Text("Delete").foregroundColor(.red) } } } How can we set a foregroundColor/fontWeight for a Button in a ToolBarItem? I've tried to set a custom ButtonStyle, foregroundColor to the Text, foregroundColor to the Button.
Posted Last updated
.
Post not yet marked as solved
0 Replies
550 Views
Is there any way to add title (Debug Menu) to the Menu in iOS? I know it's possible in Swift/UIKit but I don't find a way in SwiftUI.
Posted Last updated
.
Post not yet marked as solved
2 Replies
2.2k Views
Hello, I'm currently facing an issue with compositional layout. (FB8812336) The item height is set to .estimated(100) and the width is set to .fractionalWidth(1.0). On the initial display the cell is not wrapping the label content. The layout of the cells are corrected after scrolling. The issue doesn't occurred on iOS 13 (screenshot) - https://www.icloud.com/iclouddrive/0I3N81VDpmlMOw7bbtogeVuJA#Screen_Shot_2020-10-19_at_16.16 and can also be seen in the Apple's sample code - https://developer.apple.com/documentation/uikit/views_and_controls/collection_views/implementing_modern_collection_views Do I miss a flag or a property introduced in iOS 14? Does someone know how to fix this issue? Thank you.
Posted Last updated
.