Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Commit

Permalink
Merge pull request #33 from nodes-ios/bugfix/misplaced_image_view
Browse files Browse the repository at this point in the history
adds autoresizing mask to ImageView
  • Loading branch information
chriscombs authored Oct 4, 2017
2 parents fb4577a + 5fede95 commit 394edaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ xcuserdata
*.moved-aside
*.xcuserstate
*.xcscmblueprint
.DS_Store

## Obj-C/Swift specific
*.hmap
Expand Down Expand Up @@ -54,7 +55,7 @@ Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md
Expand Down
1 change: 1 addition & 0 deletions Spinner/Spinner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ public extension SpinnerView {
if let image = animationImage {
let imageView = UIImageView(frame: view.bounds)
imageView.contentMode = .center
imageView.autoresizingMask = [.flexibleTopMargin, .flexibleLeftMargin, .flexibleRightMargin, .flexibleBottomMargin]
imageView.animationDuration = image.animationDuration
imageView.animationImages = image.animationImages
imageView.startAnimating()
Expand Down

0 comments on commit 394edaf

Please sign in to comment.