Skip to content

Commit

Permalink
fix: build errors with the tab view (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasCarioca authored Aug 15, 2020
1 parent f2125c2 commit 7b0a155
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ struct TabRootView: View {
ZStack {
self.theme.backgroundColor.edgesIgnoringSafeArea(.all)
VStack {
tabs[tag].view.frame(width: geometry.size.width, height: geometry.size.height-75, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
self.tabs[self.tag].view.frame(width: geometry.size.width, height: geometry.size.height-75, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)
ZStack {
HStack {
ForEach(0..<tabs.count) { i in
Image(systemName: tabs[i].image)
ForEach(0..<self.tabs.count) { i in
Image(systemName: self.tabs[i].image)
.resizable()
.aspectRatio(contentMode: .fit)
.padding(20)
Expand Down

0 comments on commit 7b0a155

Please sign in to comment.