diff --git a/MaLiang.podspec b/MaLiang.podspec index 70a60ba..402fbca 100644 --- a/MaLiang.podspec +++ b/MaLiang.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'MaLiang' - s.version = '1.1.6' + s.version = '1.1.7' s.summary = 'MaLiang is a painting Framework based on OpenGL ES.' s.description = <<-DESC @@ -21,7 +21,7 @@ The name of "MaLiang" comes from a boy who had a magical brush in Chinese ancien s.source = { :git => 'https://github.com/harley-xk/MaLiang.git', :tag => s.version.to_s } s.ios.deployment_target = '9.0' - s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.1' } + s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.2' } s.source_files = 'MaLiang/Classes/**/*' diff --git a/MaLiang/Classes/Canvas.swift b/MaLiang/Classes/Canvas.swift index 104b6ac..276d2c9 100644 --- a/MaLiang/Classes/Canvas.swift +++ b/MaLiang/Classes/Canvas.swift @@ -69,6 +69,11 @@ open class Canvas: MLView { } } + open override func layoutSubviews() { + super.layoutSubviews() + redraw() + } + // MARK: - Document public private(set) var document: Document? public func setupDocument() throws {