Skip to content
Permalink
Browse files

Updated for SwiftUI Beta 4

  • Loading branch information...
smartvipere75 committed Jul 22, 2019
1 parent 717a5d7 commit 2981fba1ee92de8081810d66bb337ffc0b43df22
Showing with 5 additions and 3 deletions.
  1. +4 −2 Sources/BottomBar-SwiftUI/BottomBar.swift
  2. +1 −1 Sources/BottomBar-SwiftUI/BottomBarItemView.swift
@@ -14,7 +14,7 @@ public struct BottomBar : View {
public let items: [BottomBarItem]

public init(selectedIndex: Binding<Int>, items: [BottomBarItem]) {
self.$selectedIndex = selectedIndex
self._selectedIndex = selectedIndex
self.items = items
}

@@ -35,7 +35,9 @@ public struct BottomBar : View {
Spacer()
}
}
}.padding()
}
.padding()
.animation(.default)
}
}

@@ -20,7 +20,7 @@ public struct BottomBarItemView: View {

if isSelected {
Text(item.title)
.color(item.color)
.foregroundColor(item.color)
.fontWeight(/*@START_MENU_TOKEN@*/.bold/*@END_MENU_TOKEN@*/)
}
}

0 comments on commit 2981fba

Please sign in to comment.
You can’t perform that action at this time.