-
Notifications
You must be signed in to change notification settings - Fork 13
View+endEditingOnTap #152
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
base: main
Are you sure you want to change the base?
View+endEditingOnTap #152
Conversation
| @@ -0,0 +1,20 @@ | |||
| import SwiftUI | |||
|
|
|||
| @available(iOS 13.0, *) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The availability should be fixed for other platforms, probably check other extensions that are SwiftUI specific. That should fix the CI build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say, that having #if canImport(UIKit) && !os(watchOS) and then limit availability only to iOS feels weird, doesn't it? This would work on macOS, wouldn't it? Not sure about tvOS, but I would say so.
olejnjak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The availability should be fixed for other platforms, probably check other extensions that are SwiftUI specific. That should fix the CI build.
|
@LukasHromadnik 🙏 🙄 |
9c26c2c to
4075901
Compare
| @@ -0,0 +1,20 @@ | |||
| import SwiftUI | |||
|
|
|||
| @available(iOS 13.0, *) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say, that having #if canImport(UIKit) && !os(watchOS) and then limit availability only to iOS feels weird, doesn't it? This would work on macOS, wouldn't it? Not sure about tvOS, but I would say so.
| @available(iOS 13.0, *) | ||
| public extension View { | ||
|
|
||
| @available(iOSApplicationExtension, unavailable) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can move this availability clause to the extension itself so it is at one place.
Add
endEditingOnTapmodifier that is used across our SwiftUI projectsChecklist