How can I create a custom alert in TCA? #1049
-
So I am trying to create a custom alert that has different design from the SwiftUI.Alert that is currently supported by TCA with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @hossamsherif-reo! In isowords we have an example "bottom menu" component that might be a good reference: The module includes 2 files. The first, "BottomMenu.swift," includes just the core SwiftUI view, that can be configured with The second file, "ComposableBottomMenu.swift," contains all the glue needed to drive the component UI from TCA: And this view and glue is used in our "GameCore" module, where Hope this helps get you started! |
Beta Was this translation helpful? Give feedback.
Hi @hossamsherif-reo! In isowords we have an example "bottom menu" component that might be a good reference:
https://github.com/pointfreeco/isowords/tree/b87f4c61c0523564adf17c031f9fa4b88a40d631/Sources/BottomMenu
The module includes 2 files. The first, "BottomMenu.swift," includes just the core SwiftUI view, that can be configured with
Text
s, button action closures, and is driven by an optional binding ofBottomMenu
state:https://github.com/pointfreeco/isowords/blob/b87f4c61c0523564adf17c031f9fa4b88a40d631/Sources/BottomMenu/BottomMenu.swift
The second file, "ComposableBottomMenu.swift," contains all the glue needed to drive the component UI from TCA:
https://github.com/pointfreeco/isow…