Giter Club home page Giter Club logo

Comments (11)

ygee07 avatar ygee07 commented on July 30, 2024 1

Thank you @izyumkin @jfpalacios

from mcemojipicker.

ygee07 avatar ygee07 commented on July 30, 2024

Same, for me it dismisses the picker immediately upon clicking it without being able to choose an emoji

from mcemojipicker.

izyumkin avatar izyumkin commented on July 30, 2024

I don't have the ability to debug the library for iOS 17 yet. But I think in the near future to install the Xcode beta and check what's new there.

If possible, describe your problems in more detail, along with screenshots, I will be grateful. And if you have any ideas how to fix these problems, I will be glad to see your pull requests.

from mcemojipicker.

ygee07 avatar ygee07 commented on July 30, 2024

Hi @izyumkin,

It only happens for me when using it with a Binding on ForEach

import SwiftUI
import MCEmojiPicker

struct ContentView: View {
   @State var emojis = ["😀", "😁", "😇"]
    
    var body: some View {
        VStack {
            ForEach($emojis, id: \.self) { $emoji in
                EmojiPicker(selection: $emoji)
            }
        }
    }
}

struct EmojiPicker: View {
    @Binding var selection: String
    @State private var isPresented: Bool = false
    
    var body: some View {
        Button(selection) {
            isPresented.toggle()
        }
        .padding()
        .emojiPicker(
            isPresented: $isPresented,
            selectedEmoji: $selection
        )
    }
}

Then it behaves like this.
2023-07-25 20 29 56
The picker dismisses immediately without being able to select any other emoji

from mcemojipicker.

Konstix08 avatar Konstix08 commented on July 30, 2024

i solved my problem bc i adapted my code a bit. But there are a bunch of warnings and i think they are from the framework:
image

from mcemojipicker.

izyumkin avatar izyumkin commented on July 30, 2024

I will try to help you guys soon

Screenshot 2023-07-25 at 20 44 25

Which beta do you work on? Maybe there is a proven stable one?

from mcemojipicker.

Konstix08 avatar Konstix08 commented on July 30, 2024

i am on beta 3. I think i update tomorrow

from mcemojipicker.

ygee07 avatar ygee07 commented on July 30, 2024

Still seems to be an issue on the latest betas
Xcode 15 Beta 5, iOS 17 Beta 4

from mcemojipicker.

izyumkin avatar izyumkin commented on July 30, 2024

Sorry guys, I have a lot of work on my main job right now. I will try to fix everything by the end of next week🙏

from mcemojipicker.

izyumkin avatar izyumkin commented on July 30, 2024

@ygee07 The bug you had was fixed by @jfpalacios

from mcemojipicker.

izyumkin avatar izyumkin commented on July 30, 2024

@Konstix08 please tell me you still have a lot of warnings? I tried to get a similar result, but it's not working yet

from mcemojipicker.

Related Issues (19)

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.