Skip to content

Remove public CanConfigureViews #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 11, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- markymark (7.0)
- markymark (7.1)

DEPENDENCIES:
- markymark (from `../`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: ../

SPEC CHECKSUMS:
markymark: e4c535ff88b577d7cd0ffed5ecff606cc06c4f8a
markymark: 2dbd0f000579b1992d0e6355d5cdd83b097d03f7

PODFILE CHECKSUM: 702819c9a9352a2969fd49865aabe1f21e7c3404

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ open class MarkdownAttributedLabel: AttributedInteractiveLabel {
public init(font: UIFont? = nil) {
super.init()
self.font = font
configureViews()
configureViewProperties()
}

override public init(frame: CGRect) {
Expand All @@ -46,7 +46,7 @@ open class MarkdownAttributedLabel: AttributedInteractiveLabel {

required public init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
configureViews()
configureViewProperties()

styling.paragraphStyling.baseFont = font
styling.paragraphStyling.textColor = textColor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

public protocol CanConfigureViews {
protocol CanConfigureViews {

func configureViews()
func configureViewProperties()
Expand All @@ -16,7 +16,7 @@ public protocol CanConfigureViews {
func configureViewLayout()
}

public extension CanConfigureViews {
extension CanConfigureViews {

func configureViews() {
configureViewProperties()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ open class AttributedInteractiveLabel: UILabel {

public init(){
super.init(frame: CGRect())
configureViews()
configureViewProperties()
}

override public init(frame: CGRect) {
super.init(frame: CGRect())
configureViews()
configureViewProperties()
}

required public init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
configureViews()
configureViewProperties()
}

@objc func didTap(_ tapGesture:UITapGestureRecognizer) {
Expand Down Expand Up @@ -125,7 +125,7 @@ open class AttributedInteractiveLabel: UILabel {
}
}

extension AttributedInteractiveLabel: CanConfigureViews {
extension AttributedInteractiveLabel {

public func configureViewProperties() {
isUserInteractionEnabled = true;
Expand Down