Skip to content

Commit

Permalink
Merge pull request #122 from tumblr/bjtitus/editor-view-delegate
Browse files Browse the repository at this point in the history
Editor View Delegate fix
  • Loading branch information
bjtitus authored Sep 8, 2021
2 parents 75acbd2 + 0dc70d4 commit 90f783b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Classes/Editor/EditorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ final class EditorView: UIView, MovableViewCanvasDelegate, MediaPlayerViewDelega
self.movableViewCanvas = movableViewCanvas ?? MovableViewCanvas()
super.init(frame: .zero)
self.movableViewCanvas.delegate = self
setupViews()
}

func updateUI(forDraggingClip: Bool) {
Expand All @@ -288,7 +287,7 @@ final class EditorView: UIView, MovableViewCanvasDelegate, MediaPlayerViewDelega
})
}

private func setupViews() {
func setupViews() {
setupPlayer()
setupDrawingCanvas()
setupMovableViewCanvas()
Expand Down
2 changes: 2 additions & 0 deletions Classes/Editor/EditorViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ public final class EditorViewController: UIViewController, MediaPlayerController
override public func viewDidLoad() {
super.viewDidLoad()

editorView.setupViews()

view.backgroundColor = .black
editorView.add(into: view)
drawingController.drawingLayer = editorView.drawingCanvas.layer
Expand Down
2 changes: 1 addition & 1 deletion Kanvas.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "Kanvas"
spec.version = "1.3.1"
spec.version = "1.3.2"
spec.summary = "A custom camera built for iOS."
spec.homepage = "https://github.com/tumblr/kanvas-ios"
spec.license = "MPLv2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ final class EditorViewTests: FBSnapshotTestCase {
mediaContentMode: .scaleAspectFit,
movableViewCanvas: nil)
view.frame = CGRect(x: 0, y: 0, width: 320, height: 480)
view.setupViews()
return view
}

Expand Down
4 changes: 2 additions & 2 deletions KanvasExample/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PODS:
- FBSnapshotTestCase/Core (2.1.4)
- FBSnapshotTestCase/SwiftSupport (2.1.4):
- FBSnapshotTestCase/Core
- Kanvas (1.3.1)
- Kanvas (1.3.2)

DEPENDENCIES:
- FBSnapshotTestCase (= 2.1.4)
Expand All @@ -20,7 +20,7 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
FBSnapshotTestCase: 094f9f314decbabe373b87cc339bea235a63e07a
Kanvas: faba43c849ca46b304f760ebbf993f0b94bc6a32
Kanvas: ddc575e431d8fd397a5413adace5b608d3c6c043

PODFILE CHECKSUM: 14b28dd726149c0d01dba9154d5bb095d9ba6a18

Expand Down

0 comments on commit 90f783b

Please sign in to comment.