Skip to content

Commit 989cda4

Browse files
committed
feat(ios): updated SDWebImage, progress and loadSource events
BREAKING CHANGES: progressBar properties were removed. As there is a progress event now you can easily handle that in your app
1 parent 95b37fd commit 989cda4

29 files changed

+1451
-3203
lines changed

demo-snippets/vue/Advanced.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
:lowerResSrc="lowerResSrc"
1313
:placeholderImageUri="placeholderImage"
1414
:failureImageUri="failureImage"
15-
:showProgressBar="showProgressBar"
16-
:progressBarColor="progressBarColor"
1715
:stretch="stretch"
1816
:roundAsCircle="roundAsCircle"
1917
:roundTopLeftRadius="roundTopLeftRadius"
@@ -57,7 +55,6 @@
5755

5856
<Label text="Toggles" class="h3" marginTop="12" />
5957
<WrapLayout>
60-
<Button :text="'Progress: ' + showProgressBar" @tap="toggle('showProgressBar')" />
6158
<Button :text="'RoundAsCircle: ' + roundAsCircle" @tap="toggle('roundAsCircle')" />
6259
<Button :text="'No Cache: ' + noCache" @tap="toggle('noCache')" />
6360
<Button :text="'No Ratio Enforce: ' + noRatioEnforce" @tap="toggle('noRatioEnforce')" />
@@ -147,8 +144,6 @@ export default {
147144
lowerResSrc: null,
148145
placeholderImage: null,
149146
failureImage: null,
150-
showProgressBar: true,
151-
progressBarColor: 'green',
152147
roundAsCircle: false,
153148
roundTopLeftRadius: 0,
154149
roundTopRightRadius: 0,

demo-snippets/vue/Animated.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
:animatedImageView="true"
1212
:autoPlayAnimations="autoPlayAnimations"
1313
:tapToRetryEnabled="tapToRetryEnabled"
14-
showProgressBar="true"
15-
progressBarColor="red"
1614
/>
1715
<WrapLayout marginTop="8">
1816
<Button :text="'AutoPlay: ' + autoPlayAnimations" @tap="toggleAutoPlay" />

demo-snippets/vue/DecodeAndResize.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
:blurRadius="blurRadius"
1515
:blurDownSampling="blurDownSampling"
1616
:noRatioEnforce="noRatioEnforce"
17-
:showProgressBar="true"
18-
progressBarColor="purple"
1917
@finalImageSet="onFinal"
2018
/>
2119

demo-snippets/vue/Events.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
width="98%"
99
height="220"
1010
src="https://images.pexels.com/photos/842711/pexels-photo-842711.jpeg"
11-
showProgressBar="true"
12-
progressBarColor="blue"
1311
:animatedImageView="true"
1412
@finalImageSet="onFinalImageSet"
1513
@failure="onFailure"

demo-snippets/vue/Failure.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
placeholderImageUri="res://icon_star"
1212
backgroundColor="blue"
1313
failureImageUri="res://icon_not_found"
14-
showProgressBar="true"
1514
failure="onFailure"
1615
src="http://error.jpgerror"
1716
/>

demo-snippets/vue/PlaceholdersAndFallbacks.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
:failureImageUri="failure"
1515
:progressiveRenderingEnabled="progressive"
1616
:localThumbnailPreviewsEnabled="localThumb"
17-
:showProgressBar="showProgressBar"
18-
:progressBarColor="progressColor"
1917
@finalImageSet="onFinalImage"
2018
@failure="onFailure"
2119
@progress="onProgress"
@@ -32,7 +30,6 @@
3230
<WrapLayout marginTop="8">
3331
<Button :text="'Progressive: ' + progressive" @tap="toggle('progressive')" />
3432
<Button :text="'LocalThumbs: ' + localThumb" @tap="toggle('localThumb')" />
35-
<Button :text="'ProgressBar: ' + showProgressBar" @tap="toggle('showProgressBar')" />
3633
<Button :text="'Placeholder(resource)'" @tap="setPlaceholderToResource" />
3734
<Button :text="'Placeholder(local)'" @tap="setPlaceholderToLocal" />
3835
<Button :text="'Clear placeholder'" @tap="clearPlaceholder" />
@@ -61,8 +58,6 @@ export default {
6158
failure: null,
6259
progressive: true,
6360
localThumb: false,
64-
showProgressBar: true,
65-
progressColor: 'blue',
6661
logs: [] as string[],
6762
localFile: ImageSource.fromFileSync('~/assets/images/drink.jpg')
6863
};

demo-snippets/vue/Simple.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
<StackLayout orientation="horizontal">
99
<NSImg
1010
ref="opacityImg"
11-
:showProgressBar="true"
1211
:noRatioEnforce="false"
13-
progressBarColor="green"
1412
backgroundColor="yellow"
1513
borderRadius="10"
1614
height="100"

demo-snippets/vue/TapToRetry.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<ActionBar title="Tap to Retry Demo" />
44
<StackLayout padding="10">
55
<Label text="Tap-to-Retry" class="h2" />
6-
<NSImg ref="img" width="100%" height="200" :src="src" :tapToRetryEnabled="tapToRetry" :showProgressBar="true" progressBarColor="orange" @failure="onFailure" @finalImageSet="onFinal" />
6+
<NSImg ref="img" width="100%" height="200" :src="src" :tapToRetryEnabled="tapToRetry" @failure="onFailure" @finalImageSet="onFinal" />
77
<WrapLayout marginTop="8">
88
<Button :text="'TapToRetry: ' + tapToRetry" @tap="toggle('tapToRetry')" />
99
<Button text="Set broken image" @tap="setBroken" />

demo-snippets/vue/TintAndBackground.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<StackLayout padding="10">
55
<Label text="Tint & Background Demo" class="h2" />
66
<GridLayout columns="*,*" marginTop="8" height="60%">
7-
<NSImg col="0" width="100%" height="200" :src="src" :tintColor="tint" :showProgressBar="true" />
8-
<NSImg col="1" width="100%" height="200" :src="src" :backgroundUri="background" :showProgressBar="true" />
7+
<NSImg col="0" width="100%" height="200" :src="src" :tintColor="tint" />
8+
<NSImg col="1" width="100%" height="200" :src="src" :backgroundUri="background" />
99
</GridLayout>
1010
<WrapLayout marginTop="8">
1111
<Button text="Apply red tint" @tap="applyTint('#ff000088')" />

demo-snippets/vue/ZoomImage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Label text="Zoom Image" />
55
</ActionBar>
66

7-
<NSZoomImg src="https://images.pexels.com/photos/842711/pexels-photo-842711.jpeg" maxZoom="10" minZoom="1" imageRotation="90"/>
7+
<NSZoomImg src="https://images.pexels.com/photos/842711/pexels-photo-842711.jpeg" maxZoom="10" minZoom="1" imageRotation="90" tintColor="red" roundAsCircle="true"/>
88
</Page>
99
</template>
1010

0 commit comments

Comments
 (0)