Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the background color(i.e brown color) #22

Open
VaraPrasad62 opened this issue May 2, 2021 · 5 comments
Open

How to change the background color(i.e brown color) #22

VaraPrasad62 opened this issue May 2, 2021 · 5 comments

Comments

@VaraPrasad62
Copy link


Screen Shot 2021-05-02 at 11 09 36 AM

@nvd3351
Copy link

nvd3351 commented Jul 21, 2021

@VaraPrasad62 did you get a solution? @KiranJasvanee could you please help resolve this?

@MrinalTyagi
Copy link
Contributor

@VaraPrasad62 @KiranJasvanee just comment line 458 in OnlyPictures.swift file. There stackView's background color has been set to brown.

@3O1
Copy link

3O1 commented Sep 21, 2021

In OnlyPictures.swift change it to whatever color you like. I have it set to clear here
self.stackView.backgroundColor = UIColor.clear

@itenfay
Copy link

itenfay commented Dec 9, 2021

Screen Shot 2021-05-02 at 11 09 36 AM

@VaraPrasad62 @MrinalTyagi The background color can be modified using runtime,as follows:

guard let ivarName = ("stackView" as NSString).utf8String else {
    return
}
guard let ivar = class_getInstanceVariable(OnlyPictures.self, ivarName) else {
    return
}
if let stackView = object_getIvar(onlyPictures, ivar) as? UIStackView {
    stackView.backgroundColor = .clear
}

@hexalitics
Copy link

The background color can be change using this
onlyPictures.subviews.first?.subviews.first?.subviews.first?.backgroundColor = YOUR_COLOR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants