So in an effort to make my app a little more aesthetically pleasing, I want to implement a blurred background beneath my UIScrollView. But to do this I have to put the background image at index 0 of the containing view, which breaks the link between the UIScrollView and the Navigation Controller.I've read some older articles about changing the offset of the scrollview as a fix, but this was before iOS 11 brought the new large collapsing bar that I am trying to implement. Changing the offset will not cause the bar to start collapsing correctly. I'm doing all of this in the interface builder, but I'm definately not opposed to adding Swift code to get it to work.The incorrect behavior is visible in the first image, with the blurred background at index 0 of the root view and the UIScrollView at index 1. The correct behavior is on the second link, where I had to remove the background and set the UIScrollView at index 0 to get the Navigation Bar to collapse with scrolling.The links below Incorrect behavior:i.stack.imgur.com/MjkYx.gifCorrect behavior:i.stack.imgur.com/dkprX.gif
Post
Replies
Boosts
Views
Activity
In the AppKit lifecycle it was possible to open new windows by calling showWindow(_ sender: Any?) on an NSWindowController instance, whether it was initialized via a storyboard or via code alone.
I see that on macOS in the new SwiftUI Lifecycle you can create a new window by default using ⌘N, but it's a new copy of the existing window. Can we declare a completely unique scene and open it in a new window?
I saw that it was possible to declare custom scenes - https://developer.apple.com/documentation/swiftui/scene, but how do we invoke them if they aren't the default scene at startup?
Thanks!