-
Notifications
You must be signed in to change notification settings - Fork 63
Support customisation in Objective-C #27
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
base: master
Are you sure you want to change the base?
Conversation
| 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) |
There was a problem hiding this comment.
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.
Source/ARSLineProgress.swift
Outdated
| */ | ||
| public static func showFail() { | ||
| if !statusShown { ARSStatus.show(.fail) } | ||
| if !statusShown { ARSStatus.show(.success, title: "") } |
There was a problem hiding this comment.
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?
Source/ARSLineProgress.swift
Outdated
| } | ||
|
|
||
| public static func showFail(title: NSString) { | ||
| if !statusShown { ARSStatus.show(.success, title: title) } |
There was a problem hiding this comment.
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?
Source/ARSLineProgressHelpers.swift
Outdated
|
|
||
| @discardableResult func ars_createdFrameForBackgroundView(_ backgroundView: UIView, onView view: UIView?) -> Bool { | ||
| func sizeForTitle(_ title : NSString?) -> CGSize{ | ||
| if title != nil{ |
There was a problem hiding this comment.
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.
allow to access ARSLineProgressConfiguration from Objective-c