Post

Replies

Boosts

Views

Activity

Reply to Get Tab Bar Items to load as coloured pictures and not greyed out pictures
CLAUDE YOUR UPDATED PROGRAMATIC SOLUTION WORKS PERFECTLY, YOU'RE A GENIUS! PS: the only note I want to make for others, is if you have custom images as tab bar icons you access them with imageLiteralResourceName like so: if let handMassage = tabBarController!.viewControllers?[1] {             let customTabBarItem = UITabBarItem(title: "Hand Massage", image: UIImage(imageLiteralResourceName: "Hand Massage Logo").withRenderingMode(UIImage.RenderingMode.alwaysOriginal), selectedImage: UIImage(imageLiteralResourceName: "Hand Massage Logo"))             handMassage.tabBarItem = customTabBarItem         } also depending on your art board setup you may need to access the view controller via tabBarController!.viewControllers?
Jan ’22
Reply to Get Tab Bar Items to load as coloured pictures and not greyed out pictures
Guys my solution got answered on Stackoverflow and it goes like this so we have a copy here for posterity: got to assets folder in Xcode select the images to be have their properties changed in the inspector on the right side change the Render As value to original Picture with detailed view: How to do it programatically that's still a mystery, but if I find a solution I'll place it here. PS: if somebody has the programatic solution please post here and don't consider this thread closed yet.
Jan ’22
Reply to Xcode Automatic signing fails
So to answer my own question. I don't know what fixed it, I just tried to create a project with User interface Storyboard and it worked the code got signed, and now when I created another project with User Interface: SwiftUI the code got signed. Not complaining it's fixed, but I spent 2 days with this, and I don't even know where I made a mistake or indeed if I made one. This bragging about writing more code and do less debugging doesn't really stick Apple🤬🤬.
Jan ’22
Reply to Get Tab Bar Items to load as coloured pictures and not greyed out pictures
CLAUDE YOUR UPDATED PROGRAMATIC SOLUTION WORKS PERFECTLY, YOU'RE A GENIUS! PS: the only note I want to make for others, is if you have custom images as tab bar icons you access them with imageLiteralResourceName like so: if let handMassage = tabBarController!.viewControllers?[1] {             let customTabBarItem = UITabBarItem(title: "Hand Massage", image: UIImage(imageLiteralResourceName: "Hand Massage Logo").withRenderingMode(UIImage.RenderingMode.alwaysOriginal), selectedImage: UIImage(imageLiteralResourceName: "Hand Massage Logo"))             handMassage.tabBarItem = customTabBarItem         } also depending on your art board setup you may need to access the view controller via tabBarController!.viewControllers?
Replies
Boosts
Views
Activity
Jan ’22
Reply to Get Tab Bar Items to load as coloured pictures and not greyed out pictures
Guys my solution got answered on Stackoverflow and it goes like this so we have a copy here for posterity: got to assets folder in Xcode select the images to be have their properties changed in the inspector on the right side change the Render As value to original Picture with detailed view: How to do it programatically that's still a mystery, but if I find a solution I'll place it here. PS: if somebody has the programatic solution please post here and don't consider this thread closed yet.
Replies
Boosts
Views
Activity
Jan ’22
Reply to Get Tab Bar Items to load as coloured pictures and not greyed out pictures
Sorry Claude, that piece of code doesn't affect the Xcode default behaviour.
Replies
Boosts
Views
Activity
Jan ’22
Reply to Get Tab Bar Items to load as coloured pictures and not greyed out pictures
Thank you for your answer Claude31, but if you look at my code it does what is suggested on stackoverflow but in a more succint form. It does fix the problem for the first view aka in my app Home, but the rest, because they haven't been loaded yet stay greyed out.
Replies
Boosts
Views
Activity
Jan ’22
Reply to Xcode Automatic signing fails
So to answer my own question. I don't know what fixed it, I just tried to create a project with User interface Storyboard and it worked the code got signed, and now when I created another project with User Interface: SwiftUI the code got signed. Not complaining it's fixed, but I spent 2 days with this, and I don't even know where I made a mistake or indeed if I made one. This bragging about writing more code and do less debugging doesn't really stick Apple🤬🤬.
Replies
Boosts
Views
Activity
Jan ’22
Reply to Xcode Automatic signing fails
This behaviour is only present when swiftUI is selected as a User Interface. When Storyboard is selected everything seems to be fine.
Replies
Boosts
Views
Activity
Jan ’22