Skip to content

Commit

Permalink
Merge pull request #97 from DSM-PICK/hotfix/2.0.0
Browse files Browse the repository at this point in the history
FIX :: 2.0.0
  • Loading branch information
cyj513 authored Sep 27, 2024
2 parents 595257c + 3ce898b commit 55cd45b
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 29 deletions.
5 changes: 1 addition & 4 deletions Projects/App/Support/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>2.0.0</string>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>FirebaseAppDelegateProxyEnabled</key>
Expand Down Expand Up @@ -53,9 +53,6 @@
<true/>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
<string>location</string>
<string>processing</string>
<string>remote-notification</string>
</array>
<key>UILaunchStoryboardName</key>
Expand Down

Large diffs are not rendered by default.

This file was deleted.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,26 @@ import SnapKit

import Lottie

import Core

public class PiCKLottieView: UIView {
private var lottieAnimationView: LottieAnimationView?
private let rawValue = UserDefaultStorage.shared.get(forKey: .displayMode) as? Int

private var animation: LottieAnimation? {
switch rawValue {
case 2:
return AnimationAsset.darkLottie.animation

default:
return AnimationAsset.whiteLottie.animation
}
}

public init() {
super.init(frame: .zero)

let animation: LottieAnimation? = AnimationAsset.pickLottie.animation

self.lottieAnimationView = .init(animation: animation)

self.configureView()
}
required init?(coder: NSCoder) {
Expand All @@ -31,8 +41,8 @@ public class PiCKLottieView: UIView {
}

public func play() {
self.lottieAnimationView?.animationSpeed = 3.5
self.lottieAnimationView?.play()
self.lottieAnimationView?.animationSpeed = 1.5
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ public class PiCKMainNavigationBar: BaseView {
return alertButton.buttonTap
}

// private var displayType: UIUserInterfaceStyle {
// let data = userDefaultStorage.get(forKey: .displayMode) as? Int
// print("displayType: \(data)")
//
// return data == 2 ? .light : .dark
// }

private let pickLogoImageView = UIImageView(image: .PiCKLogo).then {
$0.contentMode = .scaleAspectFit
}
Expand Down Expand Up @@ -68,8 +61,6 @@ public class PiCKMainNavigationBar: BaseView {

let value = self.userDefaultStorage.get(forKey: .displayMode) as? Int

// print("setValueWhenDisplayButtonDidTap: \(self?.displayType.rawValue)")

UIView.transition(
with: self.presentViewController.tabBarController!.view,
duration: 0.7,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class OnboardingViewController: BaseViewController<OnboardingViewModel> {

public override func attribute() {
super.attribute()

[
logoImageView,
onboardingButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public class OnboardingViewModel: BaseViewModel, Stepper {
let showComponet: Signal<Void>
}

let animate = PublishRelay<Void>()
let showComponet = PublishRelay<Void>()
private let animate = PublishRelay<Void>()
private let showComponent = PublishRelay<Void>()

public func transform(input: Input) -> Output {
input.viewWillAppear
Expand Down Expand Up @@ -68,8 +68,8 @@ public class OnboardingViewModel: BaseViewModel, Stepper {

input.componentAppear.asObservable()
.throttle(.seconds(2), scheduler: MainScheduler.asyncInstance)
.map { _ in self.showComponet.accept(()) }
.bind(to: showComponet)
.map { _ in self.showComponent.accept(()) }
.bind(to: showComponent)
.disposed(by: disposeBag)

input.clickOnboardingButton
Expand All @@ -79,7 +79,7 @@ public class OnboardingViewModel: BaseViewModel, Stepper {

return Output(
animate: animate.asSignal(),
showComponet: showComponet.asSignal()
showComponet: showComponent.asSignal()
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,21 @@ import DesignSystem
public class SchoolMealCollectionViewCell: BaseCollectionViewCell<Any> {
static let identifier = "SchoolMealTableViewCell"

private let mealTimeLabel = PiCKLabel(
private var mealTimeLabel = PiCKLabel(
textColor: .main700,
font: .subTitle1
)
private let kcalLabel = PiCKLabel(
private var kcalLabel = PiCKLabel(
textColor: .modeWhite,
font: .caption2,
alignment: .center,
backgroundColor: .main500,
cornerRadius: 12
)
private let menuLabel = PiCKLabel(
private var menuLabel = PiCKLabel(
textColor: .modeBlack,
font: .label1,
numberOfLines: 0,
alignment: .left
numberOfLines: 0
)
private lazy var infoStackView = UIStackView(arrangedSubviews: [
mealTimeLabel,
Expand Down Expand Up @@ -75,7 +74,7 @@ public class SchoolMealCollectionViewCell: BaseCollectionViewCell<Any> {
}
menuLabel.snp.makeConstraints {
$0.top.bottom.equalToSuperview().inset(10)
$0.leading.equalToSuperview().inset(190)
$0.leading.equalToSuperview().inset(180)
$0.trailing.equalToSuperview().inset(10)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public class SchoolMealViewController: BaseViewController<SchoolMealViewModel> {
self?.present(alert, animated: true)
}.disposed(by: disposeBag)
}

public override func addView() {
[
navigationBar,
Expand Down

0 comments on commit 55cd45b

Please sign in to comment.