Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce committed Apr 19, 2019
1 parent 82dea2d commit 1a2a5fe
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Binary file not shown.
3 changes: 3 additions & 0 deletions HelloGoodbyeiOS/HelloGoodbyeiOS/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ If there's something wrong, or you just want to say hi, tweet at me @hellogoodby
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
<navigationItem key="navigationItem" title="Setup Instructions" id="Ah4-7m-yRM"/>
<connections>
<outlet property="imageView" destination="CgL-eJ-3Ex" id="JIq-QD-ufL"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
Expand Down
9 changes: 9 additions & 0 deletions HelloGoodbyeiOS/HelloGoodbyeiOS/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,21 @@
//

import UIKit
import FLAnimatedImage

class ViewController: UIViewController {

@IBOutlet weak var imageView: FLAnimatedImageView!

override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.

let path = Bundle.main.path(forResource: "hellogoodbye", ofType: "gif")
let url = URL(fileURLWithPath: path!)
let gifData = try! Data(contentsOf: url)
let imageData = try! FLAnimatedImage(animatedGIFData: gifData)
imageView.animatedImage = imageData
}


Expand Down
Binary file not shown.

0 comments on commit 1a2a5fe

Please sign in to comment.