How is the new way to test button.title(for: .normal) == nil and since IOS 15

It's not immediately obvious what problem you are encountering.
The documentation still has the title parameter / return value typed as optional string.