triniwiz / nativescript-pager

Apache License 2.0
90 stars 48 forks source link

Indicator is not shown with version 11.0.11, Nativescript 6.2, IOS 13 #155

Closed prestig73 closed 4 years ago

prestig73 commented 4 years ago
<Pager row="1" #pager [selectedIndex]="currentPagerIndex" indicator="worm" showIndicator="true">
    <StackLayout *pagerItem orientation="vertical" class="guided-tour-content">
        <miira-label text="AAA" class="guided-tour-title frutiger-bold"></miira-label>
        <miira-label text="Loren" customStyle="padding-top: 12;" class="guided-tour-text frutiger-light"></miira-label>
        <miira-label text="BBB" customStyle="padding-top: 56;" class="guided-tour-title frutiger-bold"></miira-label>
        <miira-label text="Loren" customStyle="padding-top: 12;" class="guided-tour-text frutiger-light"></miira-label>
    </StackLayout>
    <StackLayout *pagerItem orientation="vertical" class="guided-tour-content">
        <miira-label text="E-Post" class="guided-tour-title frutiger-bold"></miira-label>
        <miira-label text="Loren" customStyle="padding-top: 12;" class="guided-tour-text frutiger-light"></miira-label>
        <miira-label text="E-Post" customStyle="padding-top: 56;" class="guided-tour-title frutiger-bold"></miira-label>
        <miira-label text="Loren" customStyle="padding-top: 12;" class="guided-tour-text frutiger-light"></miira-label>
    </StackLayout>
    <StackLayout *pagerItem orientation="vertical" class="guided-tour-content">
        <miira-label text="EEE" class="guided-tour-title frutiger-bold"></miira-label>
        <miira-label text="Loren" customStyle="padding-top: 12;" class="guided-tour-text frutiger-light"></miira-label>
        <miira-label text="FFF" customStyle="padding-top: 56;" class="guided-tour-title frutiger-bold"></miira-label>
        <miira-label text="Loren" customStyle="padding-top: 12;" class="guided-tour-text frutiger-light"></miira-label>
    </StackLayout>
</Pager>

Error is JavaScript error: file:///node_modules/nativescript-pager/pager.js:162:0: JS ERROR TypeError: this._indicatorView.removeFromSuperview is not a function. (In 'this._indicatorView.removeFromSuperview()', 'this._indicatorView.removeFromSuperview' is undefined)

Can you fix it asap thank you?

radiant-alex commented 4 years ago

Can confirm this issue with latest NS (6.2) though iOS is 10.

JS ERROR TypeError: undefined is not an object (evaluating 'this.indicatorView.intrinsicContentSize.height')

wuilmerj24 commented 4 years ago

Hi. I also have that problem. I tested it on ios 13 with NS 6.2.2

radiant-alex commented 4 years ago

Disabling indicator fixes an issue, but we need it...

wuilmerj24 commented 4 years ago

@alex-lucid How to disable the indicator?

radiant-alex commented 4 years ago

@alex-lucid How to disable the indicator?

Just do not use that property, showIndicator, and it will be Off by default

triniwiz commented 4 years ago

I'll see what I can do to address that it should be an issue around with swift version

wuilmerj24 commented 4 years ago

@triniwiz Hi. It still has this problem in v12.0.0-alpha.8. ios v12.4