-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Remove unnecessary dependencies in every CaseStudies #1503
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
Remove unnecessary dependencies in every CaseStudies #1503
Conversation
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.
Thanks! Lotta removals of import Combine
😄
// MARK: - SwiftUI previews | ||
|
||
struct NestedView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
NavigationView { | ||
NestedView( | ||
store: Store( | ||
initialState: .mock, | ||
reducer: Nested() | ||
) | ||
} | ||
) | ||
} | ||
} | ||
#endif | ||
} |
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'm not sure if it's okay to remove if DEBUG
.
@@ -1,5 +1,4 @@ | |||
import ComposableArchitecture | |||
import Foundation |
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.
Note: This was added at Concurrency Beta
(#1189)
import ComposableArchitecture | ||
import Foundation |
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.
Note: This was added at Concurrency Beta
(#1189)
@@ -1,6 +1,5 @@ | |||
import AVFoundation | |||
import ComposableArchitecture // TODO: Should `UncheckedSendable` live in `Dependencies`? | |||
import Foundation |
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.
Note: This was added at Concurrency Beta (#1189)
@@ -1,6 +1,5 @@ | |||
import AVFoundation | |||
import ComposableArchitecture | |||
import Foundation |
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.
Note: This was added at Concurrency Beta (#1189)
@@ -1,5 +1,4 @@ | |||
import ComposableArchitecture | |||
import Foundation |
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.
Note: This was added at Concurrency Beta (#1189)
Hi! 👋🏻
I removed imported dependencies that don't affect building and testing in every CaseStudies.
Most of them are
Combine
, but someFoundation
were added relatively recently at thisConcurrency Beta
#1189Removing them didn't have any build issues, but there could be reasons I'm not aware of.
I'll leave comments below. Please check.
and I added
MARK headers
to each file in SwiftUI - CaseStudies for readability, in 3 simple categories.Please refer to the capture below.