diff --git a/Example/Shared/Additional Example Source Code/Views/Instagram/Models/GalleryModel.swift b/Example/Shared/Additional Example Source Code/Views/Instagram/Models/GalleryModel.swift index c584e51..769134f 100644 --- a/Example/Shared/Additional Example Source Code/Views/Instagram/Models/GalleryModel.swift +++ b/Example/Shared/Additional Example Source Code/Views/Instagram/Models/GalleryModel.swift @@ -8,7 +8,6 @@ import Foundation class GalleryModel: ObservableObject { - var navBarItem = InstagramNavBarItem(imageName: "gallery") var posts: [Post] { PostsFactory.shared.posts diff --git a/Example/Shared/Additional Example Source Code/Views/Instagram/Models/LikedModel.swift b/Example/Shared/Additional Example Source Code/Views/Instagram/Models/LikedModel.swift index 5f9a5f6..0c52bd1 100644 --- a/Example/Shared/Additional Example Source Code/Views/Instagram/Models/LikedModel.swift +++ b/Example/Shared/Additional Example Source Code/Views/Instagram/Models/LikedModel.swift @@ -8,7 +8,6 @@ import Foundation class LikedModel: ObservableObject { - var navBarItem = InstagramNavBarItem(imageName: "liked") var posts: [Post] { PostsFactory.shared.posts diff --git a/Example/Shared/Additional Example Source Code/Views/Instagram/Models/ListModel.swift b/Example/Shared/Additional Example Source Code/Views/Instagram/Models/ListModel.swift index 704350f..6e183c1 100644 --- a/Example/Shared/Additional Example Source Code/Views/Instagram/Models/ListModel.swift +++ b/Example/Shared/Additional Example Source Code/Views/Instagram/Models/ListModel.swift @@ -8,7 +8,6 @@ import Foundation class ListModel: ObservableObject { - var navBarItem = InstagramNavBarItem(imageName: "list") var posts: [Post] { PostsFactory.shared.posts diff --git a/Example/Shared/Additional Example Source Code/Views/Instagram/Models/SavedModel.swift b/Example/Shared/Additional Example Source Code/Views/Instagram/Models/SavedModel.swift index ec72baf..b4e15ab 100644 --- a/Example/Shared/Additional Example Source Code/Views/Instagram/Models/SavedModel.swift +++ b/Example/Shared/Additional Example Source Code/Views/Instagram/Models/SavedModel.swift @@ -8,7 +8,6 @@ import Foundation class SavedModel: ObservableObject { - var navBarItem = InstagramNavBarItem(imageName: "saved") var posts: [Post] { PostsFactory.shared.posts diff --git a/Example/Shared/Additional Example Source Code/Views/Twitter/LikesModel.swift b/Example/Shared/Additional Example Source Code/Views/Twitter/LikesModel.swift index 1b0bd8b..abd77f6 100644 --- a/Example/Shared/Additional Example Source Code/Views/Twitter/LikesModel.swift +++ b/Example/Shared/Additional Example Source Code/Views/Twitter/LikesModel.swift @@ -8,7 +8,6 @@ import Foundation class LikesModel: ObservableObject { - var navBarItem = TwitterNavBarItem(title: "Likes") var posts: [Post] { PostsFactory.shared.posts diff --git a/Example/Shared/Additional Example Source Code/Views/Twitter/MediaModel.swift b/Example/Shared/Additional Example Source Code/Views/Twitter/MediaModel.swift index 608caf0..34b22de 100644 --- a/Example/Shared/Additional Example Source Code/Views/Twitter/MediaModel.swift +++ b/Example/Shared/Additional Example Source Code/Views/Twitter/MediaModel.swift @@ -8,7 +8,6 @@ import Foundation class MediaModel: ObservableObject { - var navBarItem = TwitterNavBarItem(title: "Media") var posts: [Post] { PostsFactory.shared.posts diff --git a/Example/Shared/Additional Example Source Code/Views/Twitter/TweetsModel.swift b/Example/Shared/Additional Example Source Code/Views/Twitter/TweetsModel.swift index 83bbc85..a0214f0 100644 --- a/Example/Shared/Additional Example Source Code/Views/Twitter/TweetsModel.swift +++ b/Example/Shared/Additional Example Source Code/Views/Twitter/TweetsModel.swift @@ -8,7 +8,6 @@ import Foundation class TweetsModel: ObservableObject { - var navBarItem = TwitterNavBarItem(title: "Tweets") var posts: [Post] { PostsFactory.shared.posts diff --git a/Example/Shared/InstagramView.swift b/Example/Shared/InstagramView.swift index 399d546..1b3051f 100644 --- a/Example/Shared/InstagramView.swift +++ b/Example/Shared/InstagramView.swift @@ -20,7 +20,7 @@ struct InstagramView: View { var body: some View { PagerTabStripView(selection: $selection) { PostsList(isLoading: $galleryModel.isLoading, items: galleryModel.posts).pagerTabItem { - galleryModel.navBarItem + InstagramNavBarItem(imageName: "gallery") }.onPageAppear { galleryModel.isLoading = true DispatchQueue.main.asyncAfter(deadline: .now() + 2) { @@ -29,7 +29,7 @@ struct InstagramView: View { } PostsList(isLoading: $listModel.isLoading, items: listModel.posts, withDescription: false).pagerTabItem { - listModel.navBarItem + InstagramNavBarItem(imageName: "list") }.onPageAppear { listModel.isLoading = true DispatchQueue.main.asyncAfter(deadline: .now() + 2) { @@ -38,7 +38,7 @@ struct InstagramView: View { } PostsList(isLoading: $likedModel.isLoading, items: likedModel.posts).pagerTabItem { - likedModel.navBarItem + InstagramNavBarItem(imageName: "liked") }.onPageAppear { likedModel.isLoading = true DispatchQueue.main.asyncAfter(deadline: .now() + 2) { @@ -47,7 +47,7 @@ struct InstagramView: View { } PostsList(isLoading: $savedModel.isLoading, items: savedModel.posts, withDescription: false).pagerTabItem { - savedModel.navBarItem + InstagramNavBarItem(imageName: "saved") }.onPageAppear { savedModel.isLoading = true DispatchQueue.main.asyncAfter(deadline: .now() + 2) { diff --git a/Example/Shared/TwitterView.swift b/Example/Shared/TwitterView.swift index fb3994c..b05205b 100644 --- a/Example/Shared/TwitterView.swift +++ b/Example/Shared/TwitterView.swift @@ -18,7 +18,7 @@ struct TwitterView: View { var body: some View { PagerTabStripView(selection: $selection) { PostsList(isLoading: $tweetsModel.isLoading, items: tweetsModel.posts).pagerTabItem { - tweetsModel.navBarItem + TwitterNavBarItem(title: "Tweets") }.onPageAppear { tweetsModel.isLoading = true DispatchQueue.main.asyncAfter(deadline: .now() + 2) { @@ -27,7 +27,7 @@ struct TwitterView: View { } PostsList(isLoading: $mediaModel.isLoading, items: mediaModel.posts).pagerTabItem { - mediaModel.navBarItem + TwitterNavBarItem(title: "Media") }.onPageAppear { mediaModel.isLoading = true DispatchQueue.main.asyncAfter(deadline: .now() + 2) { @@ -36,7 +36,7 @@ struct TwitterView: View { } PostsList(isLoading: $likesModel.isLoading, items: likesModel.posts, withDescription: false).pagerTabItem { - likesModel.navBarItem + TwitterNavBarItem(title: "Likes") }.onPageAppear { likesModel.isLoading = true DispatchQueue.main.asyncAfter(deadline: .now() + 2) {