Skip to content

Latest commit

 

History

History
38 lines (21 loc) · 1.23 KB

Upgrading Xibs.md

File metadata and controls

38 lines (21 loc) · 1.23 KB

Upgrading Nibs to Xibs and for Dark Mode

Follow these steps to upgrade old nibs to xibs, and fix issues with dark mode:

  1. Open your project, then open the Nib. Click 'Open and Upgrade' if necessary:

Upgrade Nib

  1. If 'Open and Upgrade' fails with a similar error to that below, try:

Error Upgrade Nib

a) upgrading manually using the terminal command (reference)

ibtool NIBNAME.nib --upgrade --write NIBNAME.xib

b) Delete the old .nib file from the XCode project, then re-add the xib:

Delete Old Nib

  1. Open up the Xib file, and for any views that are displaying incorrectly, edit the 'Background' and 'Grid Color' values from their custom values, to one of the system-provided colors. e.g.:
    • Background: Text Background Color or Window Background Color
    • Grid Color: Default (Grid Color)

Upgrade For Dark Mode

  1. You can check what the Nib would look like in dark mode by toggling the 'View as' option:

Check Colours

  1. Afterwards, it should look something like this:

After

  1. Resave and re-build :)