Skip to content

add style, UIActivatyIndicator to makeToastActivity #102 #1

@wving5

Description

@wving5

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];
    }
    .....

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions