-
-
Notifications
You must be signed in to change notification settings - Fork 65
Migration Guides
Tomasz K. edited this page Dec 15, 2024
·
14 revisions
Życie jest jakąś formą trwania obleczonej w ciała informacji.
-
Overall: We decided to keep the language consistency, so we renamed all attributes and methods containing the word
Centre
toCenter
-
Overall: We renamed
PopupManager
toPopupStack
and, respectively,PopupManagerID
toPopupStackID
-
Popup Presentation: All the methods, i.e.
present()
,setCustomID()
,setEnvironmentObject()
anddismissAfter()
, are now asynchronous. This was motivated by the concern that popups should be called from the main thread -
Popup Dismissal: All the methods, i.e.
dismissLastPopup()
,dismissPopup()
,dismissAllPopups()
, are now asynchronous. This was motivated by the concern that popups should be dismissed from the main thread
-
Package Name: We changed the library name from
MijickPopupView
toMijickPopups
-
Setup: Method
implementPopupView()
has been renamed toregisterPopups()
-
Popup:
createContent() -> some View
method has been deleted. Please declare the popup content withbody: some View
instead -
Popup Declaration: The parameter of the method
configurePopup()
has been renamed frompopup
toconfig
-
Popup Declaration: Methods
onDismiss()
andonFocus()
has been moved directly to thePopup
structure -
Popup Presentation: The
showAndStack()
method was renamed topresent()
. The methodshowAndReplace()
has been removed -
Popup Dismissal: Method
dismiss()
was renamed todismissLastPopup()
- Popup Customization: Minor changes have been made to the naming