Search results for

show when run

112,755 results found

Post

Replies

Boosts

Views

Activity

Combining condition to show something,
Hi Team, I would like to combine or mix and match two filter here is the code but seems like I cannot do what I want... I want to be able to show only what the filter is made for so if TECO and favorite is active then I would only see favourite and not TECO project , and if TECO is not active but favourite is active then it will only show all favourite project and if TECO is active it will only show all project which are not TECO regardless if they are favortie import SwiftUI struct ProjectList: View { @State private var showTecoOnly = false @State private var showFavoriteOnly = false var filteredTECOProjects: [Project] { projects.filter { project in (!showTecoOnly || !project.isTeco) } } var filteredProjects: [Project] { projects.filter { project in (!showFavoriteOnly || project.isFavorite) } } var body: some View { NavigationSplitView { List { Toggle(isOn: $showTecoOnly) { Text(Hide TECO) } Toggle(isOn: $showFavoriteOnly) { Text(Show Favorite) } ForEach (filteredTECOProje
1
0
611
Feb ’24
Show UIImageView for 1 second and hide again
Hello. I am trying to show an image for a short time, in an animated way, and hidden again. This is the function: @IBOutlet var statusField: UIImageView! @IBAction func debugbutton(_ sender: UIButton) { showIcon() } override func viewDidLoad() { super.viewDidLoad() statusField.isHidden = true func showIcon() { statusField.isHidden = false UIView.animate(withDuration: 1, delay: 0.5, options: UIView.AnimationOptions.transitionFlipFromTop, animations: { self.statusField.alpha = 0 }, completion: { finished in self.statusField.isHidden = true }) } When I run the function for the first time it works fine but then it stops doing it. The icon is no longer displayed. Any advice on what's going on? Thanks!
5
0
2.6k
Jun ’21
Now playing tab not show on CarPlay iOS 13/14
I'm building a music app that will support CarPlay. I'm able to show 4 tabs (Playlist, Artist, Album, Tracks) normally, when i play any track from CarPlay, the music play and Now Playing Infor screen show but the Now Playing Tab is not show. I tried to run on iOS simulator (13/14), the Now playing tab is not show but when i run on iOS simulator (12), the Now playing tab is show. I wonder if why this did happen ? Is there any difference ? Note: I just run it on simulator (not real device)
0
0
718
Jan ’21
Xcode Simulator Showing Only "Generic iOS Device"
Hi. I can't seem to run the simulator for the app I'm creating. It only shows, Generic iOS Device. I clicked on said text and then I clicked, Add Additional Simulators. It showed me a list of all the Apple devices available for a simulator. I selected the iPhone 11 Pro, but I can't do anything with it? Can I add the simulator, or am I completely doing something wrong here? To summarize, how do I get a simulator in Xcode 11 when it only shows, Generic iOS Device. Thanks.
3
0
2.2k
Jun ’20
Reply to Button action in xcode
Is it possible to link one view controller from the storyboard with another one thats is programatically built? Generally, YES. But I do not know if it applies in your case. it does not work... Please show your code, and be more specific. What do you mean by does not work? Does it cause some build-time error and you cannot run it? Does it build successfully but causes runtime errors or crash? Does it build successfully and run without errors but generates unexpected results? If you can show enough info, there are many readers who can help you.
Oct ’20
System volume control UI not showing
Hi, I have recently created a simple sound app. When I run it on my iPhone, I noticed when I press on the volume up/down button, the system volume control does not appear. I don’t think is due to my code since is a system UI. Is there any settings in xcode that I need to set to get the system volume control to show?
0
0
457
Aug ’20