Post

Replies

Boosts

Views

Activity

Fullscreen Cover and Sheet Bug ? XCode 15 / iOS 17
Is anyone else able to recreate this bug in XCode 15 ? Seems like if you use this code, the Fullscreencover or Sheet will not present / show in many of the views, I have confirmed by printing that the button is being tapped but it seems the sheet/fullscreencover will not preset for all the buttons in the horizontal scorllview. Could anyone else see if this bug is recreated on their system? Try tapping/clicking on some of the buttons towards the end of the Horizontal Scrollview struct TestingBug_Previews: PreviewProvider { static var previews: some View { NavigationStack{ ScrollView(){ ScrollView(.horizontal){ LazyHStack( ){ ForEach(1..<55, id:\.self){int in TestButton(title: num.description) } .padding() } } } struct TestButton: View { @State var isPresented = false var title: String = "No String" var body: some View { Button() { self.show_product.toggle() print("tapped") } label: { Text(title) } .sheet(isPresented: self.$isPresented, content: { Text("presented") }) } }
10
9
2.6k
Jun ’23