Skip to content

Conversation

@Johnnie-C
Copy link

allow to access ARSLineProgressConfiguration from Objective-c

ars_createdFrameForBackgroundView(loader.backgroundView, title:loader.title, onView: targetView)
} 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.

*/
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?


@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.

3 participants