Skip to content
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

Support customisation in Objective-C #27

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Support customisation in Objective-C #27

wants to merge 4 commits into from

Conversation

Johnnie-C
Copy link

allow to access ARSLineProgressConfiguration from Objective-c

} else {
ars_createdFrameForBackgroundView(loader.backgroundView, onView: nil)
ars_createdFrameForBackgroundView(loader.backgroundView, title:loader.title, onView: nil)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep the formatting the same way it was before.

}

/**
Will interrupt the current .Infinite loader progress and show fail animation instead.
*/
public static func showFail() {
if !statusShown { ARSStatus.show(.fail) }
if !statusShown { ARSStatus.show(.success, title: "") }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why showFail method is using .success parameter inside of it?

}

public static func showFail(title: NSString) {
if !statusShown { ARSStatus.show(.success, title: title) }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same one here: fail method has success parameter? Why?

@@ -37,9 +37,22 @@ func ars_window() -> UIWindow? {
return targetWindow
}

@discardableResult func ars_createdFrameForBackgroundView(_ backgroundView: UIView, onView view: UIView?) -> Bool {
func sizeForTitle(_ title : NSString?) -> CGSize{
if title != nil{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Space before curly brace.
  • For comprehension it is better to use guards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants