Git Product home page Git Product logo

uiimageviewalignedswift's People

Contributors

basantashraf avatar benjamindetroch avatar joeboyscout04 avatar mickmaccallum avatar rcaroff-molotov avatar romanpodymov avatar shanev avatar sochalewski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

uiimageviewalignedswift's Issues

Pod -> 0.1 installs 0.3.1

i added in my pod file the following:

pod 'UIImageViewAlignedSwift', '~> 0.1'

but pod install installs version 0.3.1 which causes build failures as this version requires the newer swift versions.
Can you please check this?
Thank you very much

Property alignTop

Hi, I'm a little new on the subject of iOS and not quite understand some things. It happens the following:

  1. You install the UIImageViewAlignedSwift library in my xcode project with Pods.
  2. I Add a imageView my storyboard.
  3. Change the class of the image view to UIImageViewAligned
  4. Add the property alignTop boolean true.

The problem is that when I run the app the compiler tells me that there is no such property. can someone please help me?

Any example?

Hi , I am new to swift.
I looking for the image can align top when the image view is set to Aspect Fill in storyboard inside the tableview.

so how i call the align top function for this pod?

Dismissing ViewControllers above causes UI bug

EDIT

It was not setting the image programmatically that causes the issue, but dismissing a UIViewController above the one with the image after presenting it as a popover i.e..
Below the original post.


I have set UIImageViewAligned as my UIImageView's class in storyboard, enabled right alignment and provided an image:

screen shot 2017-10-30 at 14 18 32

It works just like it should until I update the image programmatically like:

imageView.image = UIImage(named: "account.png")!

This results in the following UI:

screen shot 2017-10-30 at 14 19 30

Any idea why this happens & what I can do about it?

Swift 3

Time to merge the Swift 3 branch! Is it ready?

Image duplication in iOS 13b3 [BUG]

I have the same problem!
If the image is aligned, 2 images appear, one aligned and the second in the center of the original. Please pack it as soon as possible!

Tag Carthage Updates

Would it be possible for you to do a release with the new Carthage support? I'd love to tag against that release instead of master for our release.

storyboard problem

when I try to add user defined attribute I get this error:

Failed to set (alignBottom) user defined inspected property on (UIImageViewAlignedSwift.UIImageViewAligned): [<UIImageViewAlignedSwift.UIImageViewAligned 0x7fe046480f00> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key alignBottom.

Image duplication in iOS 13b1

Hi,

First off thanks much for this library!

iOS13b1 is causing a duplication of the image when using a UIImageViewAligned. If you align the image you'll see the image aligned the way you want, but you'll also see the same image in the center of the view. (both in simulator and device)

If you use UIImageViewAligned and don't align it you'll see a duplication of the image right under the UIImageView it creates.

I've attached a screenshot from Reveal below. Just a simple project with one image.

The bottom layer is referenced as UIImageViewAlignedSwift.UIImageViewAligned, and the top is the UIImageView the library creates.

Screen Shot 2019-06-06 at 8 09 55 AM

Thanks again!

Seems not to work?

I've tried to integrate your UIImageViewAlignedSwift class as follows, but unfortunately the UIImage itself is not rendered at all (see attached screenshot). What's wrong?

let imageView = UIImageViewAligned(image: UIImage(named:"my-image"))
imageView.contentMode = .scaleAspectFit
imageView.scaling = .down
imageView.alignment = .bottomRight
imageView.backgroundColor = .red

imageView.translatesAutoresizingMaskIntoConstraints = false

self.view.addSubview(self.rightImageView)

let imageViews = ["imageView":imageView]

self.view.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "V:[imageView(32)]-6-|", options: [], metrics: nil, views: imageViews))
self.view.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "H:[imageView(32)]-6-|", options: [], metrics: nil, views: imageViews))

And here is the result (the red box in the bottom right corner):

simulator screen shot 21 02 2017 20 10 27

ImageAlign not working

I've added custom class to UIImageViewAligned and set contentMode to aspectFit, alignBottom = On but it still center like below.
image

required code signature missing

I use pod install
I got Error when I set ViewControll Class on Storyboard

IB Designables: Failed to render and update auto layout status for XXXXXXXX  (iGI-eV-pSd): dlopen(UIImageViewAlignedSwift.framework, 1): no suitable image found.  Did find:
	UIImageViewAlignedSwift.framework: required code signature missing for 'UIImageViewAlignedSwift.framework'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.