view resizing, removed macOS method that also gets called on ios