Git Product home page Git Product logo

aqui's People

Contributors

alanquatermain avatar johankool 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aqui's Issues

OptionalBinding stopped working on iOS 16

OptionalBinding stopped working on iOS 16.
I did try to bind a Core Data String? field to a SwiftUI TextField.
It is not possible to change the Text on the TextField, it keeps resetting to the value stored.

Binding extension inaccessible when used as a package

I get the following error when I try to use the nullable Binding extensions like Binding($cdObject.notes, replacingNilWith: "") via the Swift Package Manager

 'Binding<Value>' initializer is inaccessible due to 'internal' protection level

If I copy OptionalBinding.swift into my project. It works fine. Maybe all that is needed is that the extension functions are marked as public?

Add a licence

Without a licence people are not allowed to use it. Consider adding a licence.

OptionalBinding initializer crashes

The first form of the optional binding, as in
TextField("Name", text: Binding($thing.name, "")),
crashes for me if the attribute,thing.name, truly is nil. This happens if a Core Data string attribute is not otherwise initialized. The crash that happens at
self.init(source)!
is
Fatal error: Unexpectedly found nil while unwrapping an Optional value.

Two workarounds:
(1) Initialize the attribute to something.
(2) Use the other form of optional binding as in
TextField(text: Binding($name, replacingWithNil: ""))

Maybe I don't really understand the distinction between the two use cases, but it still seems the
binding without replacingWithNil: should not result in a fatal error despite misuse.

TextView should have no background color

I think that TextView should have a default background color of clear vs the white one it has, which prevents styling.

I can do a pull request or you can simply make the change by adding the following on line 204:
view.backgroundColor = .clear

Updating the TextView text binding breaks it

When the text binding changes the textview doesn't allow any input (switching to a textfield works as expected)

My scenario: I have a button that when clicked changes the text binding to the next element in a list so I could edit the selected item contents.

UIVisualEffectView inexplicably hidden

It seems like UIVisualEffectView is getting hidden in the updateUIView function. The guarded unwrap of context.environment.visualEffect fails and causes the uiView to get hidden. However, the visualEffect environment property is set on the VisualEffectView struct and thus also the environment. Could this be a SwiftUI bug? I'm new enough to SwiftUI that I'm not quite certain how all the environment stuff works. Is there a particular reason that you want to use the environment version versus the actual value on the struct?

With the hidden line as written:
Screen Shot 2020-02-01 at 1 43 20 PM

With the hidden line commented out:
Screen Shot 2020-02-01 at 1 43 26 PM

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.