krzysztofzablocki / Inject

Hot Reloading for Swift applications!
MIT License
2.2k stars 114 forks source link

Exception when saving or rebuilding storyboard. #43

Closed BaDo2001 closed 2 years ago

BaDo2001 commented 2 years ago

When I'm changing something in a storyboard file and pressing save or rebuild, I get the following exception:

SnapKit.LayoutConstraint constant is not finite!

Any idea why this might happen? I don't get the exception when I'm using InjectIII without this repo.

johnno1962 commented 2 years ago

Hi, storyboard injection is only just supported these days as it was rather difficult to get working at all. It may work much of the time but the focus is on code injection. When injecting storyboards, always build the project instead of saving the file.

BaDo2001 commented 2 years ago

Thanks for the quick response. We are looking to migrate to SwiftUI anyways so this doesn't make that much of a difference I guess.