Posts

Post not yet marked as solved
2 Replies
146 Views
I just noticed, that iOS 16 is using the accent color for the navigation bar back button. (SwiftUI) When running my app on iOS 15 devices it's white. Is there a way to change that behavior? I want to have another accent color than white.
Posted
by fbertuzzi.
Last updated
.
Post not yet marked as solved
1 Replies
224 Views
When I use the new Xcode beta to build my app it crashes on launch when using iOS 15.5. However if I use a device using the iOS 16 beta it works as expected. The error I'm getting is the following. dyld[11076]: Symbol not found: _$sSo26UIContextMenuConfigurationC5UIKitE10identifier15previewProvider06actionG0ABSo9NSCopying_pSg_So16UIViewControllerCSgycSgSo6UIMenuCSgSaySo0L7ElementCGcSgtcfC   Referenced from: /private/var/containers/Bundle/Application/89EF89C9-3922-4E6C-BA00-0241894841B8/SomeApp.app/SomeApp   Expected in: /usr/lib/swift/libswiftUIKit.dylib Symbol not found: _$sSo26UIContextMenuConfigurationC5UIKitE10identifier15previewProvider06actionG0ABSo9NSCopying_pSg_So16UIViewControllerCSgycSgSo6UIMenuCSgSaySo0L7ElementCGcSgtcfC   Referenced from: /private/var/containers/Bundle/Application/89EF89C9-3922-4E6C-BA00-0241894841B8/SomeApp.app/SomeApp   Expected in: /usr/lib/swift/libswiftUIKit.dylib (lldb)  Is it missing some libraries? If I use the stable Xcode 13 Version it works as intended. I know this is still beta but I'm wondering if anyone else is having this problem or am I missing something?
Posted
by fbertuzzi.
Last updated
.
Post not yet marked as solved
0 Replies
410 Views
I'm trying to implement a Gridview with photos stored in the photos app so the user can choose one picture and pick that as his profile picture. Before SwiftUI I used the collection view and Photos Kit to fetch the images and display them in a grid. Now that I switched to SwiftUI I tried to use LazyVGrid. I am able to fetch all the photos of the user and display them in a Grid. However it uses a lot of memory. I had a memory leak before but now Instruments isn't showing any leak any more. I thought it may be, that the Grid isn't really unloading the displayed images, when it gets invisible to the user. However if you scroll up and down multiple times it just uses a lot more memory than before. Like the grid is creating always new views and the old ones don't get deleted. Am I using something wrong or misunderstand the principles of LazyVGrid? My current code
Posted
by fbertuzzi.
Last updated
.
Post not yet marked as solved
1 Replies
1.1k Views
Hey, is it possible to add an inputAccessoryView to a SwiftUI View? As we can override the inputAccessoryView field on a UIKit ViewController? I'm working on a messaging app, which needs to display the message input view all the time and "attach" it to the keyboard ones it's appearing. If if just have a View at the bottom it's moving up and down with the keyboard automatically but once I use .interactive dismissing on my scrollView my view stays up until the keyboard is fully dismissed, which doesn't look good.
Posted
by fbertuzzi.
Last updated
.