feat(Turnips): add Turnips chart part 1
MODIFY
ACHNBrowserUI/ACHNBrowserUI.xcodeproj/project.pbxproj
ACHNBrowserUI/ACHNBrowserUI.xcodeproj/project.pbxproj
02F2D4462455D81C009741DA /* round-alt-orange@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 02F2D3F62455D81C009741DA /* round-alt-orange@3x.png */; };
02F2D4472455D81C009741DA /* simple-orange@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 02F2D3F72455D81C009741DA /* simple-orange@3x.png */; };
02F2D4482455D81C009741DA /* simple-mint@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 02F2D3F82455D81C009741DA /* simple-mint@3x.png */; };
+ 4C2D676B245DA41E005831C4 /* TurnipsChartView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C2D676A245DA41E005831C4 /* TurnipsChartView.swift */; };
4C382EE8244E418800F446BA /* DismissingKeyboardOnSwipe.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C382EE7244E418800F446BA /* DismissingKeyboardOnSwipe.swift */; };
4C7FE78324574FB50011E8AB /* ActivityIndicator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C7FE78224574FB50011E8AB /* ActivityIndicator.swift */; };
4C7FE789245B57A10011E8AB /* AdaptsToSoftwareKeyboard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C7FE788245B57A10011E8AB /* AdaptsToSoftwareKeyboard.swift */; };
02F2D3F62455D81C009741DA /* round-alt-orange@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "round-alt-orange@3x.png"; sourceTree = "<group>"; };
02F2D3F72455D81C009741DA /* simple-orange@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "simple-orange@3x.png"; sourceTree = "<group>"; };
02F2D3F82455D81C009741DA /* simple-mint@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "simple-mint@3x.png"; sourceTree = "<group>"; };
+ 4C2D676A245DA41E005831C4 /* TurnipsChartView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TurnipsChartView.swift; sourceTree = "<group>"; };
4C382EE7244E418800F446BA /* DismissingKeyboardOnSwipe.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DismissingKeyboardOnSwipe.swift; sourceTree = "<group>"; };
4C7FE78224574FB50011E8AB /* ActivityIndicator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActivityIndicator.swift; sourceTree = "<group>"; };
4C7FE788245B57A10011E8AB /* AdaptsToSoftwareKeyboard.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdaptsToSoftwareKeyboard.swift; sourceTree = "<group>"; };
69B13CAC24577A090089BD7B /* TurnipIslandRow.swift */,
687B5767244A030700C1E86F /* TurnipsView.swift */,
69B13CB024577BBF0089BD7B /* TurnipsFormView.swift */,
+ 4C2D676A245DA41E005831C4 /* TurnipsChartView.swift */,
);
path = turnips;
sourceTree = "<group>";
6942FC3A244989530062FE8F /* ListingRow.swift in Sources */,
69BEA97F243E602C00F02C61 /* TabbarView.swift in Sources */,
69B13CA42455973F0089BD7B /* ItemsCrosslineSectionView.swift in Sources */,
+ 4C2D676B245DA41E005831C4 /* TurnipsChartView.swift in Sources */,
693E0B22244C596D00D20E46 /* ActiveCrittersView.swift in Sources */,
69AF8C51243E283D001DD9CB /* AppDelegate.swift in Sources */,
693E728E245D71DD00CD26F4 /* UIState.swift in Sources */,

MODIFY
ACHNBrowserUI/ACHNBrowserUI/views/turnips/TurnipsView.swift
ACHNBrowserUI/ACHNBrowserUI/views/turnips/TurnipsView.swift
@@ -42,6 +42,13 @@ struct TurnipsView: View {
.foregroundColor(.blue)
}
}
+ if viewModel.predictions != nil {
+ Section(header: SectionHeaderView(text: "Chart")) {
+ NavigationLink(destination: TurnipsChartView(predictions: viewModel.predictions!)) {
+ Text("Chart").foregroundColor(.blue)
+ }
+ }
+ }
predictionsSection
exchangeSection
}

feat(Turnips): add Turnips chart part 1