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

Need help "converting" .border(.primary) from SwiftUI to UIKit :O #2278

Open
smhk opened this issue Aug 23, 2024 · 0 comments
Open

Need help "converting" .border(.primary) from SwiftUI to UIKit :O #2278

smhk opened this issue Aug 23, 2024 · 0 comments

Comments

@smhk
Copy link

smhk commented Aug 23, 2024

Cheers, I have this in SwiftUI

                 .resizable()
                 .aspectRatio(contentMode: .fit)
                 .frame(width: 72, height: 72, alignment: .center)
                 .border(.primary)

then for UIKit,

                let rp = ResizingImageProcessor(
                    referenceSize: CGSize(width: 72 * UIScreen.main.scale, height: 72 * UIScreen.main.scale),
                    mode: .aspectFit
                )
                
                let bp = BorderImageProcessor  ... ?!?#@#@!??
                
                im.kf.setImage(with: u, options: [rp, .cacheOriginalImage])
                im.url = u

I'm stumped on how to implement .border(.primary)

Thanks in advance if anyone can answer, cheers

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

1 participant