Post

Replies

Boosts

Views

Activity

Animating popover size changes
According to the HIG, - https://developer.apple.com/design/human-interface-guidelines/macos/windows-and-views/popovers/ changes in popover size should be animated: Animate changes in size to avoid giving the impression that a new popover replaced the old one. How can this be done in SwiftUI? No matter where I put .animate() annotations, I can't get the actual popover frame to transition smoothly. Best I can get is that the popover frame changes immediately, and then the controls awkwardly animate over to the right location.
4
2
1.7k
Dec ’21
Xcode 12 can't add package dependency from ssh?
I have a local file server with git repositories and ssh access. I have several swift packages stored there, and some of them have been successfully added as dependencies in projects using Xcode 11. I am now unable to add any package dependencies like this in Xcode 12. I can successfully clone the repo from the Source Control -> Clone... menu so I know the repo is valid. The steps I am following are to add the dependency: File -> Swift Packages -> Add Package Dependency... Enter: ssh://MyServer.local/path/to/git/repo Xcode prompts for credentials -> success Xcode asks for the import rules, with correctly filled in version numbers (so I know it can access the repo at this point) I accept the defaults, click "next" I get the following error: The source control operation failed because no working copy could be found. Make sure the file is in a valid working copy and try again. Any idea how resolve this? Existing SPM packages resolve and work correctly, but I can't add any new ones.
1
0
7.2k
Jun ’21