Hello. I am creating a widget for my existing app. The main app uses a two color linear gradient throughout and I want the widget to do the same. Black at the top and my custom color of #06539F (ANCBlue). So, I create a custom color set in assets named ANCBlue with the above hex code. Then, I create an extension file:
"import SwiftUI
struct ColorManager {
static let ancBlue = Color("ANCBlue")
}"
I then put this line of code in my WidgetEntryView:
".background(LinearGradient(gradient: Gradient(colors: [.black, ColorManager.ancBlue]), startPoint: .top, endPoint: .bottom))"
This produces my gradient as black and green, not my wanted colors of black and ANCBlue. For the life of me, I cannot figure out why Xcode is changing the custom blue color (ANCBlue) into a green color. If I change the above line to just a solid background using my custom blue color, it shows just fine. Change it back to gradient with black and my custom blue, and the blue displays as green. Please help!
Post
Replies
Boosts
Views
Activity
I have a free app for our college. We have a campus food shop. If I were to include a link to click within the app that opens Safari and a secure online ordering system for people to place orders for pickup, is that considered a violation of the "prohibition of linking to external stores from within the app?"
Hello, All.
I am having an issue I just can seem to correct. My app is setup with a TabView. It has 5 tabs at the bottom. When I start the app fresh, the first(main) tab, 3rd tab, and last tab all work fine when selected. However, if I select the second or fourth tab, there is a 6 second delay before transitioning to that tab. In the console, after selecting either the second or fourth tab, once the view shows after the 6 second delay, it states: Gesture: System gesture gate timed out.
Can anyone provide any information as to why this is happening? Thank you.