Skip to content

Commit

Permalink
Fix animation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MouazAlzahabi committed May 10, 2023
1 parent 15b85c2 commit ed2ee5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Multisig/UI/ClaimToken/ClaimSuccessViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ClaimSuccessViewController: UIViewController {
@IBOutlet weak var textLabel: UILabel!
@IBOutlet weak var askLabel: UILabel!
@IBOutlet weak var tweetBox: TweetBox!
@IBOutlet weak var animationView: AnimationView!
@IBOutlet weak var animationView: LottieAnimationView!
@IBOutlet weak var shareButton: UIButton!

var amount: Sol.UInt128!
Expand Down Expand Up @@ -59,7 +59,7 @@ class ClaimSuccessViewController: UIViewController {
shareButton.setText("Share transaction", .primary)
shareButton.setImage(UIImage(named: "ico-share")?.withTintColor(.primary), for: .normal)
shareButton.imageEdgeInsets.right = 16
animationView.animation = Animation.named(isDarkMode ? "successAnimationDark" : "successAnimation",
animationView.animation = LottieAnimation.named(isDarkMode ? "successAnimationDark" : "successAnimation",
animationCache: nil)
animationView.contentMode = .scaleAspectFit
animationView.backgroundBehavior = .pauseAndRestore
Expand Down
10 changes: 5 additions & 5 deletions Multisig/UI/ClaimToken/ClaimSuccessViewController.xib
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21678"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
Expand All @@ -12,7 +12,7 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="ClaimSuccessViewController" customModule="Multisig" customModuleProvider="target">
<connections>
<outlet property="animationView" destination="mQC-4M-811" id="aaf-dz-JJd"/>
<outlet property="animationView" destination="mQC-4M-811" id="nWN-KA-ZwE"/>
<outlet property="askLabel" destination="eos-wH-3BO" id="Vpl-du-9D1"/>
<outlet property="okButton" destination="bQf-nv-fCd" id="3p9-X5-uyd"/>
<outlet property="shareButton" destination="qFY-Fa-V2B" id="522-yE-FGM"/>
Expand All @@ -36,7 +36,7 @@
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="16" translatesAutoresizingMaskIntoConstraints="NO" id="JKZ-CW-5nN">
<rect key="frame" x="16" y="0.0" width="382" height="476"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="mQC-4M-811" customClass="AnimationView" customModule="Lottie">
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="mQC-4M-811" customClass="LottieAnimationView" customModule="Lottie">
<rect key="frame" x="0.0" y="0.0" width="382" height="110"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
Expand Down Expand Up @@ -140,7 +140,7 @@
</objects>
<resources>
<namedColor name="labelPrimary">
<color red="0.0" green="0.074509803921568626" blue="0.15686274509803921" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.070588235294117646" green="0.074509803921568626" blue="0.070588235294117646" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
Expand Down

0 comments on commit ed2ee5a

Please sign in to comment.