Skip to content

Commit

Permalink
🛠#297: Share Extension에서 사용할 파일들 타겟멤버쉽 추가 및 사용해야할 SDK들 의존성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph704 committed Aug 12, 2024
1 parent 2c271ed commit 8935808
Show file tree
Hide file tree
Showing 3 changed files with 453 additions and 11 deletions.
12 changes: 9 additions & 3 deletions StreetDrop/Podfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'StreetDrop' do
# platform :ios, '14.0'

def pods
pod 'NMapsMap'
pod 'Google-Mobile-Ads-SDK'
end

target 'StreetDrop' do
pods
end

target 'ShareExtension' do
pods
end
21 changes: 20 additions & 1 deletion StreetDrop/ShareExtension/View/ShareViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
import UIKit
import Social

import RxSwift

final class ShareViewController: SLComposeServiceViewController {

private let viewModel: ShareViewModel = .init()
private let disposeBag: DisposeBag = .init()

override func isContentValid() -> Bool {
return true
Expand All @@ -22,5 +25,21 @@ final class ShareViewController: SLComposeServiceViewController {
override func configurationItems() -> [Any]! {
return []
}

override func viewDidLoad() {
super.viewDidLoad()
bindViewModel()
}
}

private extension ShareViewController {
func bindViewModel() {
let input: ShareViewModel.Input = .init(viewDidLoadEvent: .just(Void()))
let output: ShareViewModel.Output = viewModel.convert(
input: input,
disposedBag: disposeBag
)
}


}
Loading

0 comments on commit 8935808

Please sign in to comment.