Code Monkey home page Code Monkey logo

Comments (9)

huri000 avatar huri000 commented on May 17, 2024 2

I'm glad it works!

but it was cool and useful when we could set color of background into the xib, and not in the attribute.

In that case, one has to handle the round-corners himself by clipping to bounds and mnipulating the layer and not count on SwiftEntryKit to do so.

I consider it resolved.

from swiftentrykit.

huri000 avatar huri000 commented on May 17, 2024

Hi @Banck,
Can you fill the whole template (iOS version, Xcode, etc...)?
I tried to reproduce without a success.

from swiftentrykit.

huri000 avatar huri000 commented on May 17, 2024

In any case, please update to 0.5.1. There is a bug in the rollback window logic in 0.5.0.

from swiftentrykit.

Banck avatar Banck commented on May 17, 2024

The same issue with 0.5.1.
I haven't changed anything. The previous version was 0.4.2

from swiftentrykit.

Banck avatar Banck commented on May 17, 2024

Here is a xib example
Архив.zip

Call:

let alertView = TwoButtonsAlertView(title: title, subTitle: subTitle, cancelButtonTitle: cancelButtonTitle, okButtonTitle: okButtonTitle)
    alertView.cancelButtonDidTap = {
        SwiftEntryKit.dismiss(with: canceledAction)
    }
    alertView.okButtonDidTap = {
        SwiftEntryKit.dismiss(with: okAction)
    }
    
    SwiftEntryKit.display(entry: alertView, using: placeAlertAttributes(canBeClosed: canBeClosed))

from swiftentrykit.

huri000 avatar huri000 commented on May 17, 2024

In order to resolve this, you need to set the background-color via attributes.entryBackground.
Clear the view's backgroundColor in your xib and do instead:
attributes.entryBackground = .color(color: .white)
Let me know if that helps.

from swiftentrykit.

huri000 avatar huri000 commented on May 17, 2024

When I really think about it, It was supposed to be like this from the beginning.
Developers shouldn't be able to customize entries halfway - You can stick to the example project presets which haven't changed by version 0.5.x and work just fine. :-)

from swiftentrykit.

Banck avatar Banck commented on May 17, 2024

@huri000 Hello!
Yes, if I do
attributes.entryBackground = .color(color: .white)

and set clear color of my background view in the xib it works fine! Thanks.

from swiftentrykit.

Banck avatar Banck commented on May 17, 2024

but it was cool and useful when we could set color of background into the xib, and not in the attribute.

from swiftentrykit.

Related Issues (20)

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.