Skip to content

Commit

Permalink
fix: onboardingItem uiimage -> image
Browse files Browse the repository at this point in the history
  • Loading branch information
Jihyun247 committed Aug 15, 2024
1 parent 76daeed commit e1282d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,28 @@
// Copyright © 2024 PomoNyang. All rights reserved.
//

import Foundation
import SwiftUI

import DesignSystem

public struct OnboardingItem: Equatable, Identifiable {
public var id: UUID = .init()
let image: UIImage
let image: Image
var title: String
let subTitle: String
}

let OnboardingItemsData: [OnboardingItem] = [
OnboardingItem(
image: UIImage(systemName: "star")!,
image: Image(systemName: "star"),
title: "모하냥과 함께 집중시간을 늘려보세요",
subTitle: "고양이 종에 따라 성격이 달라요.\n취향에 맞는 고양이를 선택해 몰입해 보세요."),
OnboardingItem(
image: UIImage(systemName: "star.fill")!,
image: Image(systemName: "star.fill"),
title: "다른 앱을 실행하면 방해 알림을 보내요",
subTitle: "뽀모도로를 실행한 후, 다른 앱을 사용하면\n설정한 주기로 방해 알림을 보내드려요."),
OnboardingItem(
image: UIImage(systemName: "house")!,
image: Image(systemName: "house"),
title: "집중과 휴식 반복을 통해 몰입을 관리해요",
subTitle: "일정 시간 집중과 휴식을 반복해 번아웃을 방지하고\n짧은 시간의 몰입을 경험해보세요.")
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct OnboardingCarouselContentView: View {
ZStack {
Rectangle()
.foregroundStyle(Alias.Color.Background.secondary)
Image(uiImage: item.image)
item.image
}
.frame(width: 240, height: 240)

Expand Down

0 comments on commit e1282d0

Please sign in to comment.