Skip to content

Migration Guides

Tomasz K. edited this page Dec 15, 2024 · 14 revisions

Życie jest jakąś formą trwania obleczonej w ciała informacji.

Migration Guides

3.x.x -> 4.0.0

  • Overall: We decided to keep the language consistency, so we renamed all attributes and methods containing the word Centre to Center
  • Overall: We renamed PopupManager to PopupStackand, respectively, PopupManagerID to PopupStackID
  • Popup Presentation: All the methods, i.e. present(), setCustomID(), setEnvironmentObject() and dismissAfter(), 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

2.x.x -> 3.0.0

  • Package Name: We changed the library name from MijickPopupView to MijickPopups
  • Setup: Method implementPopupView() has been renamed to registerPopups()
  • Popup: createContent() -> some View method has been deleted. Please declare the popup content with body: some View instead
  • Popup Declaration: The parameter of the method configurePopup() has been renamed from popup to config
  • Popup Declaration: Methods onDismiss() and onFocus() has been moved directly to the Popup structure
  • Popup Presentation: The showAndStack() method was renamed to present(). The method showAndReplace() has been removed
  • Popup Dismissal: Method dismiss() was renamed to dismissLastPopup()
  • Popup Customization: Minor changes have been made to the naming