Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// DefaultDreamShareRepository.swift
// Presentation
//
// Created by 김수연 on 2023/01/08.
// Copyright © 2023 RecorDream-iOS. All rights reserved.
//

import Domain

import RxSwift

public class DefaultDreamShareRepository {

private let disposeBag = DisposeBag()

public init() {

}
}

extension DefaultDreamShareRepository: DreamShareRepository {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// DreamShareEntity.swift
// Presentation
//
// Created by 김수연 on 2023/01/08.
// Copyright © 2023 RecorDream-iOS. All rights reserved.
//

import Foundation

public struct DreamShareEntity {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// DreamShareRepository.swift
// Presentation
//
// Created by 김수연 on 2023/01/08.
// Copyright © 2023 RecorDream-iOS. All rights reserved.
//

import RxSwift

public protocol DreamShareRepository {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//
// DreamShareUseCase.swift
// Presentation
//
// Created by 김수연 on 2023/01/08.
// Copyright © 2023 RecorDream-iOS. All rights reserved.
//

import RxSwift
import RxRelay

public protocol DreamShareUseCase {

}

public class DefaultDreamShareUseCase {

private let repository: DreamShareRepository
private let disposeBag = DisposeBag()

public init(repository: DreamShareRepository) {
self.repository = repository
}
}

extension DefaultDreamShareUseCase: DreamShareUseCase {

}
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ public enum RDDSKitAsset {
public static let rdSplashLogo = RDDSKitImages(name: "rd_splash_logo")
public static let rdgoroMark = RDDSKitImages(name: "rdgoro_mark")
public static let splashBackground = RDDSKitImages(name: "splash_background")

public static let instaLogo = RDDSKitImages(name: "insta_rogo")
public static let instaBackground = RDDSKitImages(name: "instaBackground")
public static let instaCardBlue = RDDSKitImages(name: "insta_card_blue")
public static let instaCardPink = RDDSKitImages(name: "insta_card_pink")
public static let instaCardPurple = RDDSKitImages(name: "insta_card_purple")
public static let instaCardRed = RDDSKitImages(name: "insta_card_red")
public static let instaCardWhite = RDDSKitImages(name: "insta_card_white")
public static let instaCardYellow = RDDSKitImages(name: "insta_card_yellow")
}
}
// swiftlint:enable identifier_name line_length nesting type_body_length type_name
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "instaBackground.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "insta_card_blue.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "insta_card_pink.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "insta_card_purple.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "insta_card_red.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "insta_card_white.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "insta_card_yellow.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "insta_rogo.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,16 @@ extension DependencyContainer: MainTabBarControllerFactory {

return dreamSearchVC
}

public func instantiateDreamShareVC(dreamModel: DreamDetailEntity) -> DreamShareVC {
let repository = DefaultDreamShareRepository()
let useCase = DefaultDreamShareUseCase(repository: repository)
let viewModel = DreamShareViewModel(useCase: useCase)
let dreamShareVC = DreamShareVC()

dreamShareVC.viewModel = viewModel
dreamShareVC.factory = self

return dreamShareVC
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

import Foundation

public typealias ViewControllerFactory = AuthViewControllerFactory & MainTabBarControllerFactory
import Domain

public typealias ViewControllerFactory = AuthViewControllerFactory & MainTabBarControllerFactory

// TODO: - Login Flow에 사용될 Factory Protocol, 추후에 구현
public protocol AuthViewControllerFactory {
Expand All @@ -26,4 +28,6 @@ public protocol MainTabBarControllerFactory {
func instantiateDetailVC(dreamId: String) -> DreamDetailVC
func instantiateSearchVC() -> DreamSearchVC
func instantiateDetailMoreVC(dreamId: String) -> DreamDetailMoreVC

func instantiateDreamShareVC(dreamModel: DreamDetailEntity) -> DreamShareVC
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import UIKit

import Domain
import RD_DSKit

import RxSwift
Expand Down Expand Up @@ -192,6 +193,12 @@ extension DreamDetailMoreVC {
self.modalPresentationStyle = .overFullScreen
self.present(dreamModifyVC, animated: true)
}).disposed(by: self.disposeBag)

self.shareButton.rx.tap
.asDriver()
.drive(onNext: {
// TODO : 인스타 연결 로직
}).disposed(by: self.disposeBag)
}

private func bindViewModels() {
Expand Down
Loading