diff --git a/Example/Podfile.lock b/Example/Podfile.lock index ec249ed..87f8af9 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -1,5 +1,5 @@ PODS: - - FrameLayoutKit (5.3.2) + - FrameLayoutKit (5.4) - NKButton (4.4): - FrameLayoutKit - NVActivityIndicatorView/AppExtension @@ -19,10 +19,10 @@ EXTERNAL SOURCES: :path: "../" SPEC CHECKSUMS: - FrameLayoutKit: 5f5af5c693e06c40aad2382600b7bc723020fdd0 + FrameLayoutKit: b68a8389317b45536f0ad41d67358de1e163c86d NKButton: 9afb9b8fba1f28061022b90a095395f010a05979 NVActivityIndicatorView: d24b7ebcf80af5dcd994adb650e2b6c93379270f PODFILE CHECKSUM: 27dda54c13a35de23d659f7dafe6a47d20a069a3 -COCOAPODS: 1.10.2 +COCOAPODS: 1.11.0 diff --git a/NKButton.podspec b/NKButton.podspec index 9ee2100..133c613 100644 --- a/NKButton.podspec +++ b/NKButton.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'NKButton' - s.version = '4.4' + s.version = '4.5' s.summary = 'A fully customizable UIButton' s.description = <<-DESC A fully customizable button that fills all lacked functions from UIButton like: @@ -24,7 +24,7 @@ A fully customizable button that fills all lacked functions from UIButton like: s.social_media_url = 'https://twitter.com/namkennic' s.platform = :ios, '9.0' s.ios.deployment_target = '9.0' - s.swift_version = '5.0' + s.swift_version = '5.2' s.source_files = 'NKButton/Classes/*.swift' s.frameworks = 'UIKit' diff --git a/NKButton/Classes/NKButton.swift b/NKButton/Classes/NKButton.swift index b66670b..19ed17f 100644 --- a/NKButton/Classes/NKButton.swift +++ b/NKButton/Classes/NKButton.swift @@ -150,18 +150,18 @@ open class NKButton: UIButton { /** Text Horizontal Alignment */ open var textHorizontalAlignment: NKContentHorizontalAlignment { - get { labelFrame.horizontalAlignment } + get { labelFrame.alignment.horizontal } set { - labelFrame.horizontalAlignment = newValue + labelFrame.alignment.horizontal = newValue setNeedsLayout() } } /** Text Vertical Alignment */ open var textVerticalAlignment: NKContentVerticalAlignment { - get { labelFrame.verticalAlignment } + get { labelFrame.alignment.vertical } set { - labelFrame.verticalAlignment = newValue + labelFrame.alignment.vertical = newValue setNeedsLayout() } }