-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
1 parent
a6bd63c
commit 13b9aeb
Showing
64 changed files
with
2,156 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>FMWK</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>FMWK</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
// swiftlint:disable all | ||
// swift-format-ignore-file | ||
// swiftformat:disable all | ||
// Generated using tuist — https://github.com/tuist/tuist | ||
|
||
#if os(macOS) | ||
import AppKit | ||
#elseif os(iOS) | ||
import UIKit | ||
#elseif os(tvOS) || os(watchOS) | ||
import UIKit | ||
#endif | ||
#if canImport(SwiftUI) | ||
import SwiftUI | ||
#endif | ||
|
||
// swiftlint:disable superfluous_disable_command file_length implicit_return | ||
|
||
// MARK: - Asset Catalogs | ||
|
||
// swiftlint:disable identifier_name line_length nesting type_body_length type_name | ||
public enum PhysicalAsset { | ||
public enum Assets { | ||
public static let accentColor = PhysicalColors(name: "AccentColor") | ||
public static let splash = PhysicalImages(name: "Splash") | ||
} | ||
public enum PreviewAssets { | ||
} | ||
} | ||
// swiftlint:enable identifier_name line_length nesting type_body_length type_name | ||
|
||
// MARK: - Implementation Details | ||
|
||
public final class PhysicalColors { | ||
public fileprivate(set) var name: String | ||
|
||
#if os(macOS) | ||
public typealias Color = NSColor | ||
#elseif os(iOS) || os(tvOS) || os(watchOS) || os(visionOS) | ||
public typealias Color = UIColor | ||
#endif | ||
|
||
@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, visionOS 1.0, *) | ||
public private(set) lazy var color: Color = { | ||
guard let color = Color(asset: self) else { | ||
fatalError("Unable to load color asset named \(name).") | ||
} | ||
return color | ||
}() | ||
|
||
#if canImport(SwiftUI) | ||
private var _swiftUIColor: Any? = nil | ||
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *) | ||
public private(set) var swiftUIColor: SwiftUI.Color { | ||
get { | ||
if self._swiftUIColor == nil { | ||
self._swiftUIColor = SwiftUI.Color(asset: self) | ||
} | ||
|
||
return self._swiftUIColor as! SwiftUI.Color | ||
} | ||
set { | ||
self._swiftUIColor = newValue | ||
} | ||
} | ||
#endif | ||
|
||
fileprivate init(name: String) { | ||
self.name = name | ||
} | ||
} | ||
|
||
public extension PhysicalColors.Color { | ||
@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, visionOS 1.0, *) | ||
convenience init?(asset: PhysicalColors) { | ||
let bundle = Bundle.module | ||
#if os(iOS) || os(tvOS) || os(visionOS) | ||
self.init(named: asset.name, in: bundle, compatibleWith: nil) | ||
#elseif os(macOS) | ||
self.init(named: NSColor.Name(asset.name), bundle: bundle) | ||
#elseif os(watchOS) | ||
self.init(named: asset.name) | ||
#endif | ||
} | ||
} | ||
|
||
#if canImport(SwiftUI) | ||
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *) | ||
public extension SwiftUI.Color { | ||
init(asset: PhysicalColors) { | ||
let bundle = Bundle.module | ||
self.init(asset.name, bundle: bundle) | ||
} | ||
} | ||
#endif | ||
|
||
public struct PhysicalImages { | ||
public fileprivate(set) var name: String | ||
|
||
#if os(macOS) | ||
public typealias Image = NSImage | ||
#elseif os(iOS) || os(tvOS) || os(watchOS) || os(visionOS) | ||
public typealias Image = UIImage | ||
#endif | ||
|
||
public var image: Image { | ||
let bundle = Bundle.module | ||
#if os(iOS) || os(tvOS) || os(visionOS) | ||
let image = Image(named: name, in: bundle, compatibleWith: nil) | ||
#elseif os(macOS) | ||
let image = bundle.image(forResource: NSImage.Name(name)) | ||
#elseif os(watchOS) | ||
let image = Image(named: name) | ||
#endif | ||
guard let result = image else { | ||
fatalError("Unable to load image asset named \(name).") | ||
} | ||
return result | ||
} | ||
|
||
#if canImport(SwiftUI) | ||
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *) | ||
public var swiftUIImage: SwiftUI.Image { | ||
SwiftUI.Image(asset: self) | ||
} | ||
#endif | ||
} | ||
|
||
#if canImport(SwiftUI) | ||
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *) | ||
public extension SwiftUI.Image { | ||
init(asset: PhysicalImages) { | ||
let bundle = Bundle.module | ||
self.init(asset.name, bundle: bundle) | ||
} | ||
|
||
init(asset: PhysicalImages, label: Text) { | ||
let bundle = Bundle.module | ||
self.init(asset.name, bundle: bundle, label: label) | ||
} | ||
|
||
init(decorative asset: PhysicalImages) { | ||
let bundle = Bundle.module | ||
self.init(decorative: asset.name, bundle: bundle) | ||
} | ||
} | ||
#endif | ||
|
||
// swiftlint:enable all | ||
// swiftformat:enable all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
// swiftlint:disable all | ||
// swift-format-ignore-file | ||
// swiftformat:disable all | ||
// Generated using tuist — https://github.com/tuist/tuist | ||
|
||
#if os(macOS) | ||
import AppKit | ||
#elseif os(iOS) | ||
import UIKit | ||
#elseif os(tvOS) || os(watchOS) | ||
import UIKit | ||
#endif | ||
#if canImport(SwiftUI) | ||
import SwiftUI | ||
#endif | ||
|
||
// swiftlint:disable superfluous_disable_command file_length implicit_return | ||
|
||
// MARK: - Asset Catalogs | ||
|
||
// swiftlint:disable identifier_name line_length nesting type_body_length type_name | ||
public enum RapidAsset { | ||
public enum Assets { | ||
public static let accentColor = RapidColors(name: "AccentColor") | ||
public static let splash = RapidImages(name: "Splash") | ||
} | ||
public enum PreviewAssets { | ||
} | ||
} | ||
// swiftlint:enable identifier_name line_length nesting type_body_length type_name | ||
|
||
// MARK: - Implementation Details | ||
|
||
public final class RapidColors { | ||
public fileprivate(set) var name: String | ||
|
||
#if os(macOS) | ||
public typealias Color = NSColor | ||
#elseif os(iOS) || os(tvOS) || os(watchOS) || os(visionOS) | ||
public typealias Color = UIColor | ||
#endif | ||
|
||
@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, visionOS 1.0, *) | ||
public private(set) lazy var color: Color = { | ||
guard let color = Color(asset: self) else { | ||
fatalError("Unable to load color asset named \(name).") | ||
} | ||
return color | ||
}() | ||
|
||
#if canImport(SwiftUI) | ||
private var _swiftUIColor: Any? = nil | ||
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *) | ||
public private(set) var swiftUIColor: SwiftUI.Color { | ||
get { | ||
if self._swiftUIColor == nil { | ||
self._swiftUIColor = SwiftUI.Color(asset: self) | ||
} | ||
|
||
return self._swiftUIColor as! SwiftUI.Color | ||
} | ||
set { | ||
self._swiftUIColor = newValue | ||
} | ||
} | ||
#endif | ||
|
||
fileprivate init(name: String) { | ||
self.name = name | ||
} | ||
} | ||
|
||
public extension RapidColors.Color { | ||
@available(iOS 11.0, tvOS 11.0, watchOS 4.0, macOS 10.13, visionOS 1.0, *) | ||
convenience init?(asset: RapidColors) { | ||
let bundle = Bundle.module | ||
#if os(iOS) || os(tvOS) || os(visionOS) | ||
self.init(named: asset.name, in: bundle, compatibleWith: nil) | ||
#elseif os(macOS) | ||
self.init(named: NSColor.Name(asset.name), bundle: bundle) | ||
#elseif os(watchOS) | ||
self.init(named: asset.name) | ||
#endif | ||
} | ||
} | ||
|
||
#if canImport(SwiftUI) | ||
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *) | ||
public extension SwiftUI.Color { | ||
init(asset: RapidColors) { | ||
let bundle = Bundle.module | ||
self.init(asset.name, bundle: bundle) | ||
} | ||
} | ||
#endif | ||
|
||
public struct RapidImages { | ||
public fileprivate(set) var name: String | ||
|
||
#if os(macOS) | ||
public typealias Image = NSImage | ||
#elseif os(iOS) || os(tvOS) || os(watchOS) || os(visionOS) | ||
public typealias Image = UIImage | ||
#endif | ||
|
||
public var image: Image { | ||
let bundle = Bundle.module | ||
#if os(iOS) || os(tvOS) || os(visionOS) | ||
let image = Image(named: name, in: bundle, compatibleWith: nil) | ||
#elseif os(macOS) | ||
let image = bundle.image(forResource: NSImage.Name(name)) | ||
#elseif os(watchOS) | ||
let image = Image(named: name) | ||
#endif | ||
guard let result = image else { | ||
fatalError("Unable to load image asset named \(name).") | ||
} | ||
return result | ||
} | ||
|
||
#if canImport(SwiftUI) | ||
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *) | ||
public var swiftUIImage: SwiftUI.Image { | ||
SwiftUI.Image(asset: self) | ||
} | ||
#endif | ||
} | ||
|
||
#if canImport(SwiftUI) | ||
@available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, visionOS 1.0, *) | ||
public extension SwiftUI.Image { | ||
init(asset: RapidImages) { | ||
let bundle = Bundle.module | ||
self.init(asset.name, bundle: bundle) | ||
} | ||
|
||
init(asset: RapidImages, label: Text) { | ||
let bundle = Bundle.module | ||
self.init(asset.name, bundle: bundle, label: label) | ||
} | ||
|
||
init(decorative asset: RapidImages) { | ||
let bundle = Bundle.module | ||
self.init(decorative: asset.name, bundle: bundle) | ||
} | ||
} | ||
#endif | ||
|
||
// swiftlint:enable all | ||
// swiftformat:enable all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// swiftlint:disable all | ||
// swift-format-ignore-file | ||
// swiftformat:disable all | ||
import Foundation// MARK: - Swift Bundle Accessor for Frameworks | ||
private class BundleFinder {} | ||
extension Foundation.Bundle { | ||
/// Since Physical is a dynamic framework, the bundle for classes within this module can be used directly. | ||
static let module = Bundle(for: BundleFinder.self) | ||
}// MARK: - Objective-C Bundle Accessor | ||
@objc | ||
public class PhysicalResources: NSObject { | ||
@objc public class var bundle: Bundle { | ||
return .module | ||
} | ||
}// swiftlint:enable all | ||
// swiftformat:enable all |
Oops, something went wrong.