Skip to content

Commit

Permalink
weak reference
Browse files Browse the repository at this point in the history
  • Loading branch information
horita-yuya committed Jun 18, 2020
1 parent 1bd8027 commit 7168e36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Draw.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Draw'
s.version = '0.2.4'
s.version = '0.2.5'
s.summary = 'Drawing library for Apple platform.'

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion Draw/View/InnerCanvasView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import UIKit
private final class ImageLayer: CALayer {}

final class InnerCanvasView: UIImageView {
var canvasImageView: CanvasImageViewProtocol? {
weak var canvasImageView: CanvasImageViewProtocol? {
didSet {
guard let imageView = canvasImageView else { return }
oldValue?.removeFromSuperview()
Expand Down

0 comments on commit 7168e36

Please sign in to comment.