drawRect / Instagram_Stories

Inspired by Instagram Stories functionality. This source is similar to Instagram Stories, which is having both image and video support.
MIT License
415 stars 76 forks source link

Snap ImageView background color #86

Closed UtkuDalmaz closed 4 years ago

UtkuDalmaz commented 4 years ago

I changed snap imageview's content mode from here

    private func createSnapView() -> UIImageView {
        let snapView = UIImageView()
        snapView.translatesAutoresizingMaskIntoConstraints = false
        snapView.tag = snapIndex + snapViewTagIndicator
        snapView.backgroundColor = .black
        snapView.contentMode = .scaleAspectFit
        scrollview.addSubview(snapView)
Screen Shot 2020-03-05 at 13 23 01

My problem is that When I use a photo that doesn't fit the screen, Aspect fit shows it with blank spaces. Those space color is white, I want to change it to black. So I changed imageview's backgroundcolor but it didn't work. Do you have any idea?

boominadhaprakash commented 4 years ago

Hi @UtkuDalmaz

Please check the below link, this issue has been already addressed. Let us know, if the below link not solved your problem.

https://github.com/drawRect/Instagram_Stories/issues/79#issuecomment-555847819

Regards, Boominadha Prakash