• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

179
Views
Realizar una acción después de presionar el botón de una entrada en SwiftEntryKit

He agregado 2 botones a mi ventana emergente SwiftEntryKit , pero no puedo averiguar cómo hacer algo después de presionar un botón.

Sigo el patrón establecido con su ejemplo para las alertas .

Intenté ingresar algo en la acción de descartar, pero no funcionó:

 // Ok Button let okButtonLabelStyle = EKProperty.LabelStyle(font: buttonFont, color: buttonColor) let okButtonLabel = EKProperty.LabelContent(text: "OK, ACCEPT", style: okButtonLabelStyle) let okButton = EKProperty.ButtonContent(label: okButtonLabel, backgroundColor: .clear, highlightedBackgroundColor: buttonColor.withAlphaComponent(0.05)) { SwiftEntryKit.dismiss { print("okButton") } }

Gracias.

over 3 years ago · Santiago Trujillo
1 answers
Answer question

0

Debe establecer entryInteraction en .absorbTouches para la propiedad de attributes de SwiftEntryKit.display .

 var attributes = EKAttributes() attributes.entryInteraction = .absorbTouches [...] SwiftEntryKit.display(entry: <entry variable>, using: attributes)
over 3 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error