-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bb6040
commit 20e705a
Showing
16 changed files
with
923 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 11 additions & 15 deletions
26
0151-tca-performance/DerivedBehavior/DerivedBehavior/DerivedBehaviorApp.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
// | ||
// DerivedBehaviorApp.swift | ||
// DerivedBehavior | ||
// | ||
// Created by Point-Free on 5/12/21. | ||
// | ||
|
||
import ComposableArchitecture | ||
import SwiftUI | ||
|
||
@main | ||
struct DerivedBehaviorApp: App { | ||
var body: some Scene { | ||
WindowGroup { | ||
VanillaContentView( | ||
viewModel: .init() | ||
// counterViewModel: .init(), | ||
// profileViewModel: .init() | ||
) | ||
} | ||
var body: some Scene { | ||
WindowGroup { | ||
TcaContentView( | ||
store: Store( | ||
initialState: .init(), | ||
reducer: appReducer, | ||
environment: .init() | ||
) | ||
) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## [Point-Free](https://www.pointfree.co) | ||
|
||
> #### This directory contains code from Point-Free Episode: [Composable Architecture Performance: Case Paths](https://www.pointfree.co/episodes/ep152-composable-architecture-performance-case-paths) | ||
> | ||
> This week we improve the performance of another part of the Composable Architecture ecosystem: case paths! We will benchmark the reflection mechanism that powers case paths and speed things up with the help of a Swift runtime function. | ||
For the section of the episode where we refactor the Case Paths, see [this GitHub pull request](https://github.com/pointfreeco/swift-case-paths/pull/35). |
Oops, something went wrong.