mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-04-25 10:08:36 +02:00
Just a couple of Combine Publishers to go.
This commit is contained in:
@@ -18,7 +18,7 @@ struct CategoryRow: View {
|
||||
.padding(.leading, 15)
|
||||
.padding(.top, 5)
|
||||
|
||||
ScrollView {
|
||||
ScrollView(.horizontal) {
|
||||
HStack(alignment: .top, spacing: 0) {
|
||||
ForEach(self.items.identified(by: \.name)) { landmark in
|
||||
NavigationLink(
|
||||
|
||||
@@ -20,7 +20,8 @@ struct LandmarkList: View {
|
||||
ForEach(userData.landmarks) { landmark in
|
||||
if !self.userData.showFavoritesOnly || landmark.isFavorite {
|
||||
NavigationLink(
|
||||
destination: LandmarkDetail(landmark: landmark)) {
|
||||
destination: LandmarkDetail(landmark: landmark)
|
||||
.environmentObject(self.userData)) {
|
||||
LandmarkRow(landmark: landmark)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ struct ProfileSummary: View {
|
||||
VStack(alignment: .leading) {
|
||||
Text("Completed Badges")
|
||||
.font(.headline)
|
||||
ScrollView {
|
||||
ScrollView(.horizontal) {
|
||||
HStack {
|
||||
HikeBadge(name: "First Hike")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user