Search results for

build disappears

49,448 results found

Post

Replies

Boosts

Views

Activity

Section's .sheet(…) disappears first time shown when header: is set
I have a peculiar situation, where the first time I present a sheet from a Section that has the header: set, the sheet disappears by itself the first time it is presented. @State private var show = false // … List { Section { Text(foo) } header: { Text(bar) } .sheet(isPresented: $show) { Text(baz) } // just to enable Button(toggle) { show = true } } In Xcode I get this warning when I present the sheet (taken from our live app): Attempt to present <_TtGC7SwiftUI29PresentationHostingControllerVS_7AnyView_: 0x10a819e00> on <_TtGC7SwiftUI19UIHostingControllerGVS_15ModifiedContentVS_7AnyViewVS_12RootModifier__: 0x10a020600> (from <_TtGC7SwiftUI32NavigationStackHostingControllerVS_7AnyView_: 0x10a0cba00>) while a presentation is in progress. Tested on iOS 17.4.1, iPadOS 17.4.0 (Simulator), Xcode 15.3 Previews. Circumstances The circumstances are as following: a Section has to be in a List, and have content:, and header: or footer: set to something, and have the .sheet(…) set on the sectio
2
0
709
Apr ’24
Xcode Swift Sprite disappears when in contact with Bullet
I have this spaceshooter game where it spawns enemy ships randomly. once the player reaches 30, it would spawn a Boss Sprite. In the original App, I have it set up to where the boss would appear and only move left and right because I ran into an issue with the sprite disappearing once it collided with the bullet.I do not have it set up to where if both contacts were made, it would remove the Boss from parent.I tried to close in on the problem by copying the app and deleting everything besides the player and the boss sprite.The sprite disappears when physicsWorld.contactDelegate = self is set so it is a collision issue.Could this be a bug with the xcode?It is not the image itself because i took out the images and i am using just the placeholder image (big red X) saying that no image of that name was found.Here is a gif of what it looks likehttp://g.recordit.co/8ucvkrwR4Z.gifthe left side of the screen shows the bullets being shot from bottom to top the image coming from right to left is the b
1
0
1.6k
Apr ’16
Context menu item disappears in converted Safari Web Extension
I'm trying to convert an existing Chrome Extension to Safari Web Extension using this converter - https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari. Immediately after convert, xcode opens and I build the project with my developer certificate. Everything looks perfect in Safari: the popup works fine, the context menu item is there, options are there. The moment I restart Safari OR rebuild the project (even without changes), the context menu item disappears. This is how context menu is defined in my context.js script: chrome.runtime.onInstalled.addListener(function() { ttchrome.contextMenus.create({ tttttitle: chrome.i18n.getMessage(contextMenu), ttttcontexts: [selection], ttttid: context + selection tt}); }); chrome.contextMenus.onClicked.addListener(onClickHandler); My manifest.json has this: permissions: [activeTab, storage, contextMenus], I followed these instructions - https://developer.apple.com/documentation/safariservic
3
0
1.8k
Nov ’20
Xcode build fail
Hi, Xcode updated and now I can't build any of my projects, it says: Swift Compiler Error - Unable to load standard library for target 'arm64-apple-ios14.5' The options of running iOS devices on the simulator also disappeared. I run my Xcode on the M1 chip. Does Apple, anyone have a solution? h
1
0
372
Dec ’21
tab bar item disappears when clicked and sim cursor white
Hello, my Xcode app has worked just fine for the last few weeks, I have not changed anything and when I run it now, the tab bar disappears when the associated tab is selected, also stuff like the cursor, navigationbarbackbutton are all invisible or white. How can I fix this, not sure if it's an Xcode bug. tab view: init() { let tabBarAppearance = UITabBarAppearance() tabBarAppearance.configureWithOpaqueBackground() UITabBar.appearance().scrollEdgeAppearance = tabBarAppearance } content view: TabView(selection: $selectedTab){ NavigationView(){ FeedView() } .tabItem { Image(systemName: h.circle) }.tag(1) NavigationView(){ JobsView() } .tabItem { Image(systemName: j.circle) .tint(.gray) }.tag(2) }
0
0
625
Feb ’23
iOS 15 hardware keyboard causing the iOS keyboard disappearing or not showing
Our app recently got rejected couple times by an issue that the keyboard is not appeared (or is disappeared after 1 second) on log in page when the reviewer tried to login by using their iOS 15.0.1 device (iPhone or iPad). We can't reproduce from our devices until we connect a Magic Keyboard to our device and found out the iOS 15 has been changed for the behaviour of hardware keyboard: When running the app in iOS 15 and iOS 13 in Simulator, if the Connect Hardware Keyboard is on, typing in hardware keyboard results differently for iOS 15 and iOS 13, iOS 15 keyboard is disappeared from the Simulator. I connect my Magic Keyboard to my iPhone (iOS 15.0.1) and when I tap on a text field (e.g. in Message app) - there is no iOS keyboard appears on the screen. I also sometimes have luck that the iOS keyboard is appeared when I tap on Message app's text field, if the iPhone is awake from the locked screen. Then I can use the iOS keyboard for inputting, but once I start typing in the Magic Keyboard,
2
0
3.2k
Oct ’21
Collection view cells disappearing when keyboard appears under iOS 16
I have a UICollectionView where sometimes (about 50% of the time) when the keyboard appears, it causes all of the collection view cells to disappear. This only happens on iOS 16, and the collection view itself maintains its size throughout the keyboard presentation and dismissal, but loses all of its cells. The didEndDisplaying UICollectionViewDelegate method is called for each of the cells that were being displayed. I've tried using both diffable data source and UICollectionViewDataSource implementations. I've tried using keyboard notifications to move the collection view up, and I've tried pinning the bottom of the collection view to the top of the keyboard layout guide. The issue persists no matter the implementation. Given that it works on iOS 15 just fine, and that the issue is non-deterministically happening about half the time on iOS 16, I'm inclined to think it's yet another iOS 16 bug. I've debugged thoroughly, reviewed my code over and over, tried different implementations, and made all kin
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
1.7k
Sep ’22
Xcode 7 auto layout view disappearing act
Hi there,Just need to understand if this is a bug or if I'm doing something wrong. In the screenshot you can clearly see I have 3 views. However in the preview for the small iPhone screen, the top view isn't showing. I've been sitting all weekend trying to build a very simple interface but couldn't get it right. Either it displays correctly on a 3.5 inch screen and incorrectly everywhere else, or it displays correctly everywhere else, except on the 3.5 inch screen. I've only picked this up when I decided to build a simple screen such as the one in the screenshot.PS: I have tried to play around with the compression resistance settings, but didn't really pick up any differences.Can someone please help me understand this?http://imgur.com/dP9Dx0h (screenshot)Thanks
1
0
453
Sep ’15
Important item in Keychain seems to have disappeared (after years)
I had the following code in a program that I used to encrypt some important files. I haven't run it in a few years. It used to work, and now it seems the password is mysteriously gone from my Keychain! The return value is now errSecItemNotFound. I'm upset with myself for not backing up the key/password somewhere else. Is there anywhere this could be hiding? Did Apple move it somewhere? I know they created this Passwords app in recent years, but I don't see anything in there with the account string I used. I run the app from Xcode, so maybe it is in the container data somewhere? I do see keychain files under ~/Library. Maybe there is a way to look through old Time Machine backups. Ug. So stressful. Just looking for pointers on where the data might be, and why it might have disappeared. Unfortunately it was not a guessable password, it was a generated 256 bit key, base64 encoded. Perhaps I could crack that with brute force if I'm determined enough... public static func queryGenericPasswordAsString(acco
8
0
333
Mar ’25
Make a header of a View 1 disappear according to the position of the body of a View 2
Good evening, I am a beginner in SwiftUI (and in code in general). I am currently trying to make an application for a university project. I would like to organize the layout of my different tabs. I'm trying to manage by taking different pieces of code from the internet to form what I want to achieve. Currently I'm stuck for 8 hours on something that seems simple: A code I copied allowed me to put a presentation name that disappears when you scroll up the page content. I didn't like the TabBar, so I replaced it with a template that has a more fluid animation. I am in the following situation: I would like to form a Home tab with 2 categories: News and Challenges. For this, I have four Swift files: i. MixView ii. MixTabBar iii. NewsView iv. ChallengesView The problem comes from the fact that initially on the viewed youtube video, the data of the News page was present on the home page. Scrolling this data made the header disappear. As I also have the Challenges, I have to (I think) find a way to
0
0
425
Nov ’22