

One of the easiest of these transitions is taking an element from the previous view and animating it to its new place in the next view. I love custom transitions between view controllers. If you have to add something to a view, do it in a UIView subclass.īuilding An Expanding Circle Transition Between View Controllers
#Das dev code#
Sometimes I see code that sets up subviews in viewDidLoad() of a view controller. Just set the content offset of the collection view in an animation block like this:ĭon't Put View Code Into Your View Controller Last week I needed to scroll a collection view animated to its end with a define duration. Scrolling A Collection View With Custom Duration Using CADisplayLink Let’s see what options we have as developers. Xcode provides several ways to deal with colors for our projects. Xcode has features for all these roles and Xcode Behaviors can help to automatically switch between these features. Sometimes we are programmers, sometimes we are testers, sometimes we are bug hunters, and sometimes we are archaeologist searching for ancient bugs.
#Das dev pro#
If you want to become an Xcode pro user, you need to look into its shortcuts!ĭuring development, we developers have to wear different hats. To switch the focus to the editor you can use the shortcut ⌘J.
#Das dev how to#
To become an efficient Xcode user, you should learn how to use Xcode without reaching to the mouse or the track pad.Īfter adding a new file to the project (⌘N) Xcode sets the focus onto the file in the file navigator. Xcode comes with many keyboard shortcuts that help to navigate within a project or between the different parts of Xcode itself. I often complain on Twitter that SwiftUI code is not testable with unit tests.Įvery time I get asked what the value of such tests would be. This can be done by adding the Debugger Command po myVariable to a breakpoint like this: One feature of breakpoints I use the most is to print the value of a variable. I will go into more detail about Behaviors and how I used them in a future post. One often overlooked feature of Xcode are Behaviors. Great article as always and you should read it. In the article he shows how to write unit tests for a publisher that tokenises a string. John Sundell wrote a blog post about how to test Combine-based code. In case you wonder what I mean with jump bar, it’s this: You are using the jump bar all the time when working with Xcode. Or you can add the video to your app page in the App Store. You can use such a video to show off your app on social media. It shows if the animations are to long and how the parts of the app are connected to each other.
#Das dev simulator#
Record A Video Of Your App In The SimulatorĪ video of your app running on a device or in the simulator shows the potential users not only the user interface but also how the apps feels like. This post is to remind myself (and you) that the responder chain exists and that we can use it to react to button events. I don’t know about you, but I tend to forget that there is a responder chain in iOS. You open the library from the menu item ‘View / Show Library’ or with the shortcut ⇧⌘L.

The Snippet library is part of the library in Xcode. The most prominent accessibility features in iOS are: IOS itself is quite accessible for people with different kind of disabilities. I’m quite confident that you have seen a message like this in the debug output (assuming you’ve already used Auto Layout in one of your apps): The menu items depend on the position of the cursor.įind A Problematic View In The View Debugger Use the shortcut ⇧⌘A or select the menu item ‘Editor / Show Code Actions’ to open a contextual action menu. We as developers are responsible to respect all these environment variables. There is dark and light mode, the font size can change because of Dynamic Type, the user can ask to deactivate animations or to increase contrast.Ī good app manage to look and work good in all these circumstances. The environment our apps are running in is complex.
