Skip to content

Commit 13b9aeb

Browse files
authored
Feature/rapid api/main (#67)
* Feature/rapid api/mocking (#62) * feat: prepare domain * feat: mockData Model * feat: prepare mock data * feat: test data * Feature/rapid api/domain (#63) * feat: SearchRapidExercisesByNameUsecase * feat: SearchRapidExercisesByBodyPartsUsecase * Feature/rapid api/data (#64) * chore * chore * feat: Model * feat: RapidRepositoryImpl * feat: DI * feat: add url * feat: fetch api key * feat: fetch1000Exercises * Feature/rapid api/presentation (#65) * feat: add rapid target * chore: change graph * feat: Add Model * feat: RapidSearchTypeListView * feat: navigation * feat: binding * feat: RapidSearchByBodyPartViewModel * feat: * feat: Binding * chore * fix * chore * feat: add flow * feat: using hflow * chore * Settings bundle * feat: ExerciseThumbnailView * feat: RapidSearchByBodyPartView * feat: color * feat: add loading * feat: add search by name * change mise version * fix: GetRecordGoalStrengthUsecase * feat: RapidSearchByNameViewModel * feat: DI * feat: preview * feat: Add physical target * feat: WeightLineChartView * chore: preview sample data * chore * feat: update graph * feat: initial postion * feat: add search bar * feat: search view * feat: model * feat: RapidExerciseDetailView * feat: navigation * feat: search bar displaying mode * feat: RapidExerciseDetailView * feat: detail ui done * feat: change graph image * fix: fetch friends after fetching users (#66) * chore
1 parent a6bd63c commit 13b9aeb

File tree

64 files changed

+2156
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2156
-19
lines changed

.package.resolved

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"originHash" : "6105cb1a147aa39810bb4714adbf3613effb91a98d11e95f3b62426416edf3cf",
2+
"originHash" : "ba116232ab19674f4dccf563b6c2a2d2a675f31d81c16e7704d7ddf634185c57",
33
"pins" : [
44
{
55
"identity" : "abseil-cpp-binary",
@@ -136,6 +136,15 @@
136136
"version" : "1.26.0"
137137
}
138138
},
139+
{
140+
"identity" : "swiftui-flow",
141+
"kind" : "remoteSourceControl",
142+
"location" : "https://github.com/tevelee/SwiftUI-Flow",
143+
"state" : {
144+
"revision" : "633e0aad975fc9c13b3c13e38393d5ddcb66d45c",
145+
"version" : "2.2.0"
146+
}
147+
},
139148
{
140149
"identity" : "swinject",
141150
"kind" : "remoteSourceControl",
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>1</string>
21+
</dict>
22+
</plist>

Derived/InfoPlists/Rapid-Info.plist

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>1</string>
21+
</dict>
22+
</plist>
+150
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
// swiftlint:disable all
2+
// swift-format-ignore-file
3+
// swiftformat:disable all
4+
// Generated using tuist — https://github.com/tuist/tuist
5+
6+
#if os(macOS)
7+
import AppKit
8+
#elseif os(iOS)
9+
import UIKit
10+
#elseif os(tvOS) || os(watchOS)
11+
import UIKit
12+
#endif
13+
#if canImport(SwiftUI)
14+
import SwiftUI
15+
#endif
16+
17+
// swiftlint:disable superfluous_disable_command file_length implicit_return
18+
19+
// MARK: - Asset Catalogs
20+
21+
// swiftlint:disable identifier_name line_length nesting type_body_length type_name
22+
public enum PhysicalAsset {
23+
public enum Assets {
24+
public static let accentColor = PhysicalColors(name: "AccentColor")
25+
public static let splash = PhysicalImages(name: "Splash")
26+
}
27+
public enum PreviewAssets {
28+
}
29+
}
30+
// swiftlint:enable identifier_name line_length nesting type_body_length type_name
31+
32+
// MARK: - Implementation Details
33+
34+
public final class PhysicalColors {
35+
public fileprivate(set) var name: String
36+
37+
#if os(macOS)
38+
public typealias Color = NSColor
39+
#elseif os(iOS) || os(tvOS) || os(watchOS) || os(visionOS)
40+
public typealias Color = UIColor
41+
#endif
42+
43+
@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, visionOS 1.0, *)
44+
public private(set) lazy var color: Color = {
45+
guard let color = Color(asset: self) else {
46+
fatalError("Unable to load color asset named \(name).")
47+
}
48+
return color
49+
}()
50+
51+
#if canImport(SwiftUI)
52+
private var _swiftUIColor: Any? = nil
53+
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
54+
public private(set) var swiftUIColor: SwiftUI.Color {
55+
get {
56+
if self._swiftUIColor == nil {
57+
self._swiftUIColor = SwiftUI.Color(asset: self)
58+
}
59+
60+
return self._swiftUIColor as! SwiftUI.Color
61+
}
62+
set {
63+
self._swiftUIColor = newValue
64+
}
65+
}
66+
#endif
67+
68+
fileprivate init(name: String) {
69+
self.name = name
70+
}
71+
}
72+
73+
public extension PhysicalColors.Color {
74+
@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, visionOS 1.0, *)
75+
convenience init?(asset: PhysicalColors) {
76+
let bundle = Bundle.module
77+
#if os(iOS) || os(tvOS) || os(visionOS)
78+
self.init(named: asset.name, in: bundle, compatibleWith: nil)
79+
#elseif os(macOS)
80+
self.init(named: NSColor.Name(asset.name), bundle: bundle)
81+
#elseif os(watchOS)
82+
self.init(named: asset.name)
83+
#endif
84+
}
85+
}
86+
87+
#if canImport(SwiftUI)
88+
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
89+
public extension SwiftUI.Color {
90+
init(asset: PhysicalColors) {
91+
let bundle = Bundle.module
92+
self.init(asset.name, bundle: bundle)
93+
}
94+
}
95+
#endif
96+
97+
public struct PhysicalImages {
98+
public fileprivate(set) var name: String
99+
100+
#if os(macOS)
101+
public typealias Image = NSImage
102+
#elseif os(iOS) || os(tvOS) || os(watchOS) || os(visionOS)
103+
public typealias Image = UIImage
104+
#endif
105+
106+
public var image: Image {
107+
let bundle = Bundle.module
108+
#if os(iOS) || os(tvOS) || os(visionOS)
109+
let image = Image(named: name, in: bundle, compatibleWith: nil)
110+
#elseif os(macOS)
111+
let image = bundle.image(forResource: NSImage.Name(name))
112+
#elseif os(watchOS)
113+
let image = Image(named: name)
114+
#endif
115+
guard let result = image else {
116+
fatalError("Unable to load image asset named \(name).")
117+
}
118+
return result
119+
}
120+
121+
#if canImport(SwiftUI)
122+
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
123+
public var swiftUIImage: SwiftUI.Image {
124+
SwiftUI.Image(asset: self)
125+
}
126+
#endif
127+
}
128+
129+
#if canImport(SwiftUI)
130+
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
131+
public extension SwiftUI.Image {
132+
init(asset: PhysicalImages) {
133+
let bundle = Bundle.module
134+
self.init(asset.name, bundle: bundle)
135+
}
136+
137+
init(asset: PhysicalImages, label: Text) {
138+
let bundle = Bundle.module
139+
self.init(asset.name, bundle: bundle, label: label)
140+
}
141+
142+
init(decorative asset: PhysicalImages) {
143+
let bundle = Bundle.module
144+
self.init(decorative: asset.name, bundle: bundle)
145+
}
146+
}
147+
#endif
148+
149+
// swiftlint:enable all
150+
// swiftformat:enable all
+150
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
// swiftlint:disable all
2+
// swift-format-ignore-file
3+
// swiftformat:disable all
4+
// Generated using tuist — https://github.com/tuist/tuist
5+
6+
#if os(macOS)
7+
import AppKit
8+
#elseif os(iOS)
9+
import UIKit
10+
#elseif os(tvOS) || os(watchOS)
11+
import UIKit
12+
#endif
13+
#if canImport(SwiftUI)
14+
import SwiftUI
15+
#endif
16+
17+
// swiftlint:disable superfluous_disable_command file_length implicit_return
18+
19+
// MARK: - Asset Catalogs
20+
21+
// swiftlint:disable identifier_name line_length nesting type_body_length type_name
22+
public enum RapidAsset {
23+
public enum Assets {
24+
public static let accentColor = RapidColors(name: "AccentColor")
25+
public static let splash = RapidImages(name: "Splash")
26+
}
27+
public enum PreviewAssets {
28+
}
29+
}
30+
// swiftlint:enable identifier_name line_length nesting type_body_length type_name
31+
32+
// MARK: - Implementation Details
33+
34+
public final class RapidColors {
35+
public fileprivate(set) var name: String
36+
37+
#if os(macOS)
38+
public typealias Color = NSColor
39+
#elseif os(iOS) || os(tvOS) || os(watchOS) || os(visionOS)
40+
public typealias Color = UIColor
41+
#endif
42+
43+
@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, visionOS 1.0, *)
44+
public private(set) lazy var color: Color = {
45+
guard let color = Color(asset: self) else {
46+
fatalError("Unable to load color asset named \(name).")
47+
}
48+
return color
49+
}()
50+
51+
#if canImport(SwiftUI)
52+
private var _swiftUIColor: Any? = nil
53+
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
54+
public private(set) var swiftUIColor: SwiftUI.Color {
55+
get {
56+
if self._swiftUIColor == nil {
57+
self._swiftUIColor = SwiftUI.Color(asset: self)
58+
}
59+
60+
return self._swiftUIColor as! SwiftUI.Color
61+
}
62+
set {
63+
self._swiftUIColor = newValue
64+
}
65+
}
66+
#endif
67+
68+
fileprivate init(name: String) {
69+
self.name = name
70+
}
71+
}
72+
73+
public extension RapidColors.Color {
74+
@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, visionOS 1.0, *)
75+
convenience init?(asset: RapidColors) {
76+
let bundle = Bundle.module
77+
#if os(iOS) || os(tvOS) || os(visionOS)
78+
self.init(named: asset.name, in: bundle, compatibleWith: nil)
79+
#elseif os(macOS)
80+
self.init(named: NSColor.Name(asset.name), bundle: bundle)
81+
#elseif os(watchOS)
82+
self.init(named: asset.name)
83+
#endif
84+
}
85+
}
86+
87+
#if canImport(SwiftUI)
88+
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
89+
public extension SwiftUI.Color {
90+
init(asset: RapidColors) {
91+
let bundle = Bundle.module
92+
self.init(asset.name, bundle: bundle)
93+
}
94+
}
95+
#endif
96+
97+
public struct RapidImages {
98+
public fileprivate(set) var name: String
99+
100+
#if os(macOS)
101+
public typealias Image = NSImage
102+
#elseif os(iOS) || os(tvOS) || os(watchOS) || os(visionOS)
103+
public typealias Image = UIImage
104+
#endif
105+
106+
public var image: Image {
107+
let bundle = Bundle.module
108+
#if os(iOS) || os(tvOS) || os(visionOS)
109+
let image = Image(named: name, in: bundle, compatibleWith: nil)
110+
#elseif os(macOS)
111+
let image = bundle.image(forResource: NSImage.Name(name))
112+
#elseif os(watchOS)
113+
let image = Image(named: name)
114+
#endif
115+
guard let result = image else {
116+
fatalError("Unable to load image asset named \(name).")
117+
}
118+
return result
119+
}
120+
121+
#if canImport(SwiftUI)
122+
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
123+
public var swiftUIImage: SwiftUI.Image {
124+
SwiftUI.Image(asset: self)
125+
}
126+
#endif
127+
}
128+
129+
#if canImport(SwiftUI)
130+
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *)
131+
public extension SwiftUI.Image {
132+
init(asset: RapidImages) {
133+
let bundle = Bundle.module
134+
self.init(asset.name, bundle: bundle)
135+
}
136+
137+
init(asset: RapidImages, label: Text) {
138+
let bundle = Bundle.module
139+
self.init(asset.name, bundle: bundle, label: label)
140+
}
141+
142+
init(decorative asset: RapidImages) {
143+
let bundle = Bundle.module
144+
self.init(decorative: asset.name, bundle: bundle)
145+
}
146+
}
147+
#endif
148+
149+
// swiftlint:enable all
150+
// swiftformat:enable all
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// swiftlint:disable all
2+
// swift-format-ignore-file
3+
// swiftformat:disable all
4+
import Foundation// MARK: - Swift Bundle Accessor for Frameworks
5+
private class BundleFinder {}
6+
extension Foundation.Bundle {
7+
/// Since Physical is a dynamic framework, the bundle for classes within this module can be used directly.
8+
static let module = Bundle(for: BundleFinder.self)
9+
}// MARK: - Objective-C Bundle Accessor
10+
@objc
11+
public class PhysicalResources: NSObject {
12+
@objc public class var bundle: Bundle {
13+
return .module
14+
}
15+
}// swiftlint:enable all
16+
// swiftformat:enable all

0 commit comments

Comments
 (0)