Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppes authored Mar 28, 2020
1 parent 3123d89 commit a825947
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ struct MyView: View {
}
```

Unfortunately, SwiftUI doesn't compile this unless we wrap all of these views in `AnyView`s.
Unfortunately, SwiftUI doesn't compile this unless we wrap all of these views in `AnyView`s (which has it's own set of problems. With `Switcher`, expressing this is a breeze, and it works entirely without `AnyView`:

With `Switcher`, expressing this is a breeze:
```swift
struct MyView: View {
let state: ViewState
Expand Down

0 comments on commit a825947

Please sign in to comment.