Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: SE device UI issues #39

Merged
merged 15 commits into from
Jul 26, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public struct CourseContainerView: View {
}
}
.versionedTabStyle()
.introspect(.scrollView, on: .iOS(.v15, .v16, .v17), customize: { tabView in
.introspect(.scrollView, on: .iOS(.v16, .v17), customize: { tabView in

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@forgotvas What will happen when the new iOS version iOS 18, will be released, do we need to white list future updates or will it be handled automatically?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we will need add new version or we will need to change standard introspect to @_spi(Advanced) import SwiftUIIntrospect and use it like .introspect(.scrollView, on: .iOS(.v15...), customize: { scrollView in

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update it so we don't have to worry about future updates, until unless there is an issue?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or if it's out of the scope of this PR, we can create a task for this and can handle it post-MVP.

Copy link
Collaborator Author

@forgotvas forgotvas Jul 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated, also checked via search on project word .introspect and found that there no any other places where it uses list like .v(16), .v(17). Other places use certain version or relative range.

tabView.isScrollEnabled = false
})
.introspect(.viewController, on: .iOS(.v15), customize: { controller in
Expand Down
Loading