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

add style, UIActivatyIndicator to makeToastActivity #102 #1

Open
wving5 opened this issue Jun 15, 2019 · 0 comments
Open

add style, UIActivatyIndicator to makeToastActivity #102 #1

wving5 opened this issue Jun 15, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@wving5
Copy link
Owner

wving5 commented Jun 15, 2019

scalessec#102

- (void)makeToastActivity:(id)position {
    [self makeToastActivity:position style:nil];
}

- (void)makeToastActivity:(id)position style:(CSToastStyle *)style {
    [self makeToastActivity:position style:style indicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
}

- (void)makeToastActivity:(id)position style:(CSToastStyle *)style indicatorStyle:(UIActivityIndicatorViewStyle)indicatorStyle {
    // sanity
    UIView *existingActivityView = (UIView *)objc_getAssociatedObject(self, &CSToastActivityViewKey);
    if (existingActivityView != nil) return;

    CSToastStyle *style = [CSToastManager sharedStyle];
    if (style == nil) {
        style = [CSToastManager sharedStyle];
    }
    .....
@wving5 wving5 changed the title add style, UIActivatyIndicator to makeToastActivity add style, UIActivatyIndicator to makeToastActivity #102 Jun 15, 2019
@wving5 wving5 added the enhancement New feature or request label Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant