Search results for

build disappears

49,442 results found

Post

Replies

Boosts

Views

Activity

View crashes/disappears if root of NavigationViews links to view with @ViewBuilder property?
Hi, I have just found the weirdest behaviour in SwiftUI. Here is what happens: I have a view A which contains a NavigationView. From A the user can go to view B and from there to view C. In view C the user can enter data which updates a published property of an observable object to which views A, B and C link to via @Observed Object. On updating the published property view c just disappears, without any crash report, log message or anything (And the reason why I think it crashes is because the usual animation for going forward/backward is missing when it disappears). The app doesn't crash either and can be used normally, including going back to view C. If I remove the link to the observed object in view A OR if I remove some code from view A and put it into a separate view, then view C does not disappear when the published property is updated. The code I remove from view A uses another view which has a @ViewBuilder property. Removing the @ViewBuilder property also prevents the crash
0
0
619
Mar ’22
Source view disappearing when interrupting a zoom navigation transition
When I use the .zoom transition in a navigation stack, I get a glitch when interrupting the animation by swiping back before it completes. When doing this, the source view disappears. I can still tap it to trigger the navigation again, but its not visible on screen. This seems to be a regression in iOS 26, as it works as expected when testing on iOS 18. Has someone else seen this issue and found a workaround? Is it possible to disable interrupting the transition? Filed a feedback on the issue FB19601591 Screen recording: https://share.icloud.com/photos/04cio3fEcbR6u64PAgxuS2CLQ Example code @State var showDetail = false @Namespace var namespace var body: some View { NavigationStack { ScrollView { showDetailButton } .navigationTitle(Title) .navigationBarTitleDisplayMode(.inline) .navigationDestination(isPresented: $showDetail) { Text(Detail) .navigationTransition(.zoom(sourceID: zoom, in: namespace)) } } } var showDetailButton: some View { Button { showDetail = true } label: { Text(Show detail) .paddi
Topic: UI Frameworks SubTopic: SwiftUI
12
0
638
Aug ’25
UICollectionViewCompositionalLayout - Cells disappear with frame still on screen???
Trying to get a sticky cell that will orthogonally scroll with the section, but only partially, leaving the trailing end exposed until scrolled backwards. Demo Code: https://developer.apple.com/documentation/uikit/views_and_controls/collection_views/implementing_modern_collection_views (Download the project) Open: Modern Collection Views > Compositional Layout > Advanced layouts View Controllers > OrthogonalScrollBehaviorViewController.swift Replace func createLayout() -> UICollectionViewLayout { ... } With func createLayout() -> UICollectionViewLayout { let config = UICollectionViewCompositionalLayoutConfiguration() config.interSectionSpacing = 20 let layout = UICollectionViewCompositionalLayout(sectionProvider: { (sectionIndex: Int, layoutEnvironment: NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection? in guard let sectionKind = SectionKind(rawValue: sectionIndex) else { fatalError(unknown section kind) } let leadingItem = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
990
Mar ’22
MacBook Pro display disappearing
Since public beta 9 of MacOS 10.15, my 2015 MacBook Pro retina has a fit and decides it has no built-in display, only the external ones I have connected. System information does not show the display and the only way to get it back is to either sleep the laptop (which works 50% time) or simply reboot it.Anyone else had this at all?
1
0
1.1k
Oct ’19
All text messages disappeared
I have the beta of iOS 16 and I went into a text message and noticed that the previous messages were gone I restarted my phone and when I went back into my texts message all of my text were gone. Every last one. I no longer have any texts at all. I have since restarted my phone I have tried turning iMessage on and off I have restarted my phone with iMessage off and then turning it back on after restarting nothing has brought my text messages back. Can anyone help!? Are they just lost forever. And before you ask. My iCloud backup was turned off
0
0
923
Aug ’22
Custom rendered drawing disappears...
Hi,I am still trying to get continuously update tracinng line to work. (re: https://forums.developer.apple.com/thread/62727)Using SCNSceneRednerDelegate, I successfully rendered a drawing using Metal APIBut after a brief moment, the rendering is replaced by the objects from SceneKit.Following is my rendering code: func renderer(renderer: SCNSceneRenderer, willRenderScene scene: SCNScene, atTime time: NSTimeInterval) { guard let vm = self.viewModel, let traceModel = vm.traceModel.value, let renderPipeState = traceModel.renderPipeLineState, let nextDrawable = (self.sceneKitView.layer as? CAMetalLayer)?.nextDrawable() else { return } let commandBuffer = traceModel.commandQueue.commandBuffer() let renderPassDescriptor = MTLRenderPassDescriptor() renderPassDescriptor.colorAttachments[0].texture = nextDrawable.texture renderPassDescriptor.colorAttachments[0].loadAction = .Clear renderPassDescriptor.colorAttachments[0].storeAction = .Store let encoder = commandBuffer.renderCommandEncoderWithDescriptor(renderPassDesc
0
0
426
Sep ’16
searchController disappear iOS 11
Issue : see video :https://cloud.twsweb.it/index.php/s/Qoh5DbuhcU3DVClAnd this is my code : self.searchController.delegate = self; self.searchController.searchBar.delegate = self; self.definesPresentationContext = YES; self.searchController.searchResultsUpdater = self; self.searchController.dimsBackgroundDuringPresentation = NO; [self.searchController.searchBar sizeToFit]; self.searchController.searchBar.delegate = self; if (@available(iOS 11, *)) { self.navigationItem.searchController = self.searchController; self.navigationItem.hidesSearchBarWhenScrolling = false; } else { self.tableView.tableHeaderView = self.searchController.searchBar; }Any suggestion, No problem before iOS11 ??
0
0
688
Sep ’17
UIToolbar disappears between iOS10.2 and 10.3
We recently have had users reporting that their bottom UIToobar is no longer present. I pulled up the app in xCode on two differenct machines. One that is on El Capitan and only simulate iOS10.2 and another on Sierra with fully upgraded xcode allowing 10.3 simulation. Running the app in 10.2, I can see the toolbar is present, however, simluating in 10.3, it goes way. EDIT: Just to be clear, I see the toolbar in the storyboard layout but once running in simulation and in debug mode view, I see it disappear.Has anyone else had similar experiences or advice?Thank you.
0
0
488
May ’17
Simulator disappeared and can't readd it.
Thursday I was running a iPad Retina iOS 10.2 on my Machine. When I got into the office Friday and started my Machine up the Simulator was no longer in xCode. I attempted to add the simulator but when I went to Create a new Simulator and selected iPad Retina as the device. The OS Version drop down menu did not have the iOS 10.2 in the list.I've done a lot of things to troubleshoot this down to unistalling xCode completely removing any files on the machine, even in ~Library/ and reinstalled it completely.I'm currently running v8.3.3 of xCode and by default has iOS 10.3.1 installed. So when I went to create a new simulator I downloaded the iOS 10.2 Simulator from the components tab but there still is no version I can select in the drop down. I also downloaded iOS 9.2 to check and the drop down menu now has 9.2 iOS but does no have 10.2.I'm sorta running dry on how to fix this so I've come to this thread seeking help on how to resolve this.Thanks in advanced.-edit-So I've been messing with this more to find out
0
0
414
Jun ’17
Xcode's toolbar items disappear
Yesterday, my Xcode IDE work fine, but today there is an error with it. I cannot see some of toolbar button items on my Xcode.It seems that inactive toolbar items are hidden.I have attached screenshot below, please help me to fix it.https://www.dropbox.com/s/2j3ta4nh26x5z7i/Screen%20Shot%202015-07-27%20at%2012.15.21%20PM.png?dl=0
4
0
4.7k
Jul ’15
Reply to Drop down select not working cordova ios 11
I have the same issue when building my app with Xcode 9. Tapping the select drop down displays the list, then disappears and redisplays with a blank list.The following message is displayed in Xcode 9 console:2017-10-06 15:14:20.209882-0600 PK 2.3.0[529:87599] [Warning] Application tried to represent an active popover presentation: <UIPopoverPresentationController: 0x10095a850>If I build my app in Xcode 8 the problem is resolved. However, not using Xcode 9 is not a long term solution and Apple should address this.
Topic: Safari & Web SubTopic: General Tags:
Oct ’17