Skip to content

Commit 37fb5cd

Browse files
committed
Add iOS target and basic topic list
1 parent b279731 commit 37fb5cd

File tree

13 files changed

+382
-0
lines changed

13 files changed

+382
-0
lines changed

V2exOS.xcodeproj/project.pbxproj

Lines changed: 227 additions & 0 deletions
Large diffs are not rendered by default.

V2exOS.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

V2exOS.xcodeproj/xcuserdata/isaced.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
<key>orderHint</key>
1515
<integer>1</integer>
1616
</dict>
17+
<key>V2exOSiOS.xcscheme_^#shared#^_</key>
18+
<dict>
19+
<key>orderHint</key>
20+
<integer>6</integer>
21+
</dict>
1722
</dict>
1823
<key>SuppressBuildableAutocreation</key>
1924
<dict>

V2exOS/Views/TopicList/TopicListCellView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ struct TopicListCellView: View {
6969
}
7070

7171
}
72+
#if os(macOS)
7273
.foregroundColor(Color(NSColor.labelColor))
74+
#endif
7375
.task {
7476
if let name = topic.lastReplyBy {
7577
member = try? await v2ex.memberShow(username: name)

V2exOS/Views/TopicList/TopicListView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ struct TopicListView: View {
5555
await loadData()
5656
}
5757
.navigationTitle(_node?.title ?? "V2exOS")
58+
#if os(macOS)
5859
.navigationSubtitle(_node?.header ?? "")
60+
#endif
5961
.toolbar {
6062
KFImage.url(URL(string: _node?.avatarNormal ?? ""))
6163
.resizable()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors" : [
3+
{
4+
"idiom" : "universal"
5+
}
6+
],
7+
"info" : {
8+
"author" : "xcode",
9+
"version" : 1
10+
}
11+
}
266 KB
Loading
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "[email protected]",
5+
"idiom" : "universal",
6+
"platform" : "ios",
7+
"size" : "1024x1024"
8+
}
9+
],
10+
"info" : {
11+
"author" : "xcode",
12+
"version" : 1
13+
}
14+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}

V2exOSiOS/Info.plist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict/>
5+
</plist>

0 commit comments

Comments
 (0)