Posts

Post not yet marked as solved
0 Replies
47 Views
I have a swiftui iPhone app running on the "iOS Apps on Mac" simulator. What I'm trying to do is get a notification when the window size changes, but nothing seems to work. I have tried .onReceive(NotificationCenter.default.publisher(for: UIContentSizeCategory.didChangeNotification)) { _ in updateStuff() } I also tried .onAppear() { updateStuff() } but neither seems to get called any suggestions ?
Posted Last updated
.
Post not yet marked as solved
0 Replies
75 Views
I'm having issues with a Lazyvgrid displaying images after the screen orientation changes ( either from horizontal to portrait, or the reverse ) What happens is the images are not sized correctly. If 2 column , I see 1/3 of column 1 and the image in column 2 takes 2/3 of the screen width. Similar issues with 3 or 6 column layout. The Lazyvgrid is inside a ScrollView and thats inside a Tabview. I'v tried to trick an update by changing the column layout, the content mode (fit/fill) of the images, etc. but so far nothing has worked. Any suggestions ?, anyway to invalidate a lazyvgrid and have swiftui rebuild it ? Thanks.
Posted Last updated
.
Post not yet marked as solved
1 Replies
294 Views
I'd like to offer an option to let my users see tips again. Is there a way to do this either globally, or per tip ? right now the only option I see is to have initialization login to call Tips.resetDatastore() and have the user restart the app. I'm currently using events and rules to only show each tip once.
Posted Last updated
.