Skip to content

Commit 184bfbf

Browse files
committed
markdownui 更新版本
1 parent 9d48406 commit 184bfbf

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

SwiftPamphletApp.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -2047,8 +2047,8 @@
20472047
isa = XCRemoteSwiftPackageReference;
20482048
repositoryURL = "https://github.com/gonzalezreal/MarkdownUI";
20492049
requirement = {
2050-
kind = upToNextMajorVersion;
2051-
minimumVersion = 1.0.0;
2050+
kind = exactVersion;
2051+
version = 2.3.0;
20522052
};
20532053
};
20542054
08D107BB278826BA007B7009 /* XCRemoteSwiftPackageReference "swift-html-entities" */ = {

SwiftPamphletApp/GitHubAPI/Developer/DeveloperListView.swift

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ struct DeveloperListView: View {
6868
.toolbar(content: {
6969
ToolbarItem(placement: .navigation) {
7070
Button("添加开发者", systemImage: "plus", action: addDev)
71+
.keyboardShortcut(KeyEquivalent("a"), modifiers: .option)
7172
}
7273
})
7374
}

SwiftPamphletApp/InfoOrganizer/Info/EditInfoView.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct EditInfoView: View {
5050
})
5151
}
5252
HStack {
53-
TextField("地址:", text: $info.url)
53+
TextField("地址:", text: $info.url, prompt: Text("输入或粘贴 url,例如 https://www.starming.com"))
5454
.textFieldStyle(RoundedBorderTextFieldStyle())
5555
.onSubmit {
5656
Task {
@@ -89,7 +89,6 @@ struct EditInfoView: View {
8989
}
9090
}
9191
} // end if
92-
9392
}
9493
} // end Section
9594

@@ -129,7 +128,6 @@ struct EditInfoView: View {
129128
.stroke(.secondary, lineWidth: 1)
130129
.opacity(0.5)
131130
)
132-
.lineSpacing(5)
133131
.disableAutocorrection(true)
134132
.padding(10)
135133
.tabItem { Label("文本", systemImage: "circle") }

SwiftPamphletApp/InfoOrganizer/Info/InfoListView.swift

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ struct InfoListView: View {
2525
.toolbar {
2626
ToolbarItem(placement: .navigation) {
2727
Button("添加资料", systemImage: "plus", action: addInfo)
28+
.keyboardShortcut(KeyEquivalent("a"), modifiers: .option)
2829
}
2930
ToolbarItem(placement: .navigation) {
3031
Picker("分类", selection: $filterCate) {

SwiftPamphletApp/ViewComponet/ViewComponent.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ struct MarkdownView: View {
9797
var s: String
9898
var body: some View {
9999
Markdown(s)
100-
.markdownStyle(MarkdownStyle(font:.title3))
100+
.markdownTheme(.gitHub)
101101
}
102102
}
103103

0 commit comments

Comments
 (0)