Posts

Post not yet marked as solved
2 Replies
579 Views
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.
Posted
by jehartley.
Last updated
.
Post not yet marked as solved
2 Replies
1.3k Views
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!
Posted
by jehartley.
Last updated
.
Post not yet marked as solved
0 Replies
275 Views
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?"
Posted
by jehartley.
Last updated
.
Post not yet marked as solved
17 Replies
5.9k Views
I have a table view controller with many table view sections. In each table view section, there is a table view cell. In each table view cell, there is a content view. In each content view, there is some text and an imageView. The image view is a round profile picture with border. It has always worked. This is the code for each image view:self.imageView1.layer.cornerRadius = self.imageView1.frame.size.width / 2; self.imageView1.clipsToBounds = true; self.imageView1.layer.borderWidth = 2.0 self.imageView1.layer.borderColor = UIColor.white.cgColorI just migrated to Swift 5, and the circles are now square. No coding changes have been made whatsoever. In fact, when I migrated, the changes that it showed that it would make shouldn't have interfered at all with the roundness of the image.I am at an utter loss as to how to correct it.
Posted
by jehartley.
Last updated
.