mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Rename PostStatusBadge to PostStatusBadgeView
This commit is contained in:
parent
746ba954ec
commit
a88b58e624
@ -16,7 +16,7 @@ struct PostCellView: View {
|
||||
.lineLimit(1)
|
||||
}
|
||||
Spacer()
|
||||
PostStatusBadge(post: post)
|
||||
PostStatusBadgeView(post: post)
|
||||
}
|
||||
.padding(5)
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ struct PostEditor: View {
|
||||
.padding()
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .status) {
|
||||
PostStatusBadge(post: post)
|
||||
PostStatusBadgeView(post: post)
|
||||
}
|
||||
ToolbarItem(placement: .primaryAction) {
|
||||
Button(action: {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import SwiftUI
|
||||
|
||||
struct PostStatusBadge: View {
|
||||
struct PostStatusBadgeView: View {
|
||||
@ObservedObject var post: Post
|
||||
|
||||
var body: some View {
|
||||
@ -38,20 +38,20 @@ struct PostStatusBadge: View {
|
||||
|
||||
struct PostStatusBadge_DraftPreviews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
PostStatusBadge(post: testPostData[0])
|
||||
PostStatusBadgeView(post: testPostData[0])
|
||||
}
|
||||
}
|
||||
|
||||
struct PostStatusBadge_EditedPreviews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Group {
|
||||
PostStatusBadge(post: testPostData[1])
|
||||
PostStatusBadgeView(post: testPostData[1])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct PostStatusBadge_PublishedPreviews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
PostStatusBadge(post: testPostData[2])
|
||||
PostStatusBadgeView(post: testPostData[2])
|
||||
}
|
||||
}
|
@ -50,8 +50,8 @@
|
||||
17DF32AF24C87D3500BCE2E3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 17DF328324C87D3500BCE2E3 /* Assets.xcassets */; };
|
||||
17DF32C024C87D7B00BCE2E3 /* WriteFreely in Frameworks */ = {isa = PBXBuildFile; productRef = 17DF32BF24C87D7B00BCE2E3 /* WriteFreely */; };
|
||||
17DF32C324C87D8D00BCE2E3 /* WriteFreely in Frameworks */ = {isa = PBXBuildFile; productRef = 17DF32C224C87D8D00BCE2E3 /* WriteFreely */; };
|
||||
17DF32D524C8CA3400BCE2E3 /* PostStatusBadge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17DF32D424C8CA3400BCE2E3 /* PostStatusBadge.swift */; };
|
||||
17DF32D624C8CA3400BCE2E3 /* PostStatusBadge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17DF32D424C8CA3400BCE2E3 /* PostStatusBadge.swift */; };
|
||||
17DF32D524C8CA3400BCE2E3 /* PostStatusBadgeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17DF32D424C8CA3400BCE2E3 /* PostStatusBadgeView.swift */; };
|
||||
17DF32D624C8CA3400BCE2E3 /* PostStatusBadgeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17DF32D424C8CA3400BCE2E3 /* PostStatusBadgeView.swift */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
@ -110,7 +110,7 @@
|
||||
17DF32C824C8854B00BCE2E3 /* CONTRIBUTING.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CONTRIBUTING.md; sourceTree = "<group>"; };
|
||||
17DF32C924C8855E00BCE2E3 /* LICENSE.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = LICENSE.md; sourceTree = "<group>"; };
|
||||
17DF32CA24C8856C00BCE2E3 /* CHANGELOG.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = "<group>"; };
|
||||
17DF32D424C8CA3400BCE2E3 /* PostStatusBadge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostStatusBadge.swift; sourceTree = "<group>"; };
|
||||
17DF32D424C8CA3400BCE2E3 /* PostStatusBadgeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostStatusBadgeView.swift; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
@ -298,7 +298,7 @@
|
||||
1756AE7624CB2EDD00FD7257 /* PostEditor.swift */,
|
||||
1756AE7924CB65DF00FD7257 /* PostList.swift */,
|
||||
1756AE6D24CB255B00FD7257 /* PostStore.swift */,
|
||||
17DF32D424C8CA3400BCE2E3 /* PostStatusBadge.swift */,
|
||||
17DF32D424C8CA3400BCE2E3 /* PostStatusBadgeView.swift */,
|
||||
);
|
||||
path = Post;
|
||||
sourceTree = "<group>";
|
||||
@ -524,7 +524,7 @@
|
||||
171BFDFA24D4AF8300888236 /* CollectionListView.swift in Sources */,
|
||||
17120DB224E1E19C002B9F6C /* SettingsHeaderView.swift in Sources */,
|
||||
1756AE7724CB2EDD00FD7257 /* PostEditor.swift in Sources */,
|
||||
17DF32D524C8CA3400BCE2E3 /* PostStatusBadge.swift in Sources */,
|
||||
17DF32D524C8CA3400BCE2E3 /* PostStatusBadgeView.swift in Sources */,
|
||||
17D435E824E3128F0036B539 /* PreferencesModel.swift in Sources */,
|
||||
1765F62A24E18EA200C9EBF0 /* SidebarView.swift in Sources */,
|
||||
1756AE7A24CB65DF00FD7257 /* PostList.swift in Sources */,
|
||||
@ -550,7 +550,7 @@
|
||||
1756AE7824CB2EDD00FD7257 /* PostEditor.swift in Sources */,
|
||||
17D435E924E3128F0036B539 /* PreferencesModel.swift in Sources */,
|
||||
17120DAA24E1B2F5002B9F6C /* AccountLogoutView.swift in Sources */,
|
||||
17DF32D624C8CA3400BCE2E3 /* PostStatusBadge.swift in Sources */,
|
||||
17DF32D624C8CA3400BCE2E3 /* PostStatusBadgeView.swift in Sources */,
|
||||
17120DAD24E1B99F002B9F6C /* AccountLoginView.swift in Sources */,
|
||||
1756AE7B24CB65DF00FD7257 /* PostList.swift in Sources */,
|
||||
1753F6AC24E431CC00309365 /* MacPreferencesView.swift in Sources */,
|
||||
|
Loading…
Reference in New Issue
Block a user