Apple introduces new style of drag and drop in Xcode 10

Apple introduces new style of drag and drop in Xcode 10

September is the month where, global tech giant comes out to showcase and release it's latest products and achievements. We all know that Apple has already provided diverse range of mobile devices (iPhone) and (iWatch) as well.

Apple is very respectful around it's developer community in terms of support and help. We know that Apple releases all its range of software support with the hardware, therefore making its developer community start pushing out and supporting their users when they come up with the latest hardware.

Xcode is the mechanism to evaluate what to do and how to do. It is the only and official tool provided by Apple to not only write softwares that would run on the range of all devices Apple has, but is the only gateway to release them on the official store of Apple for softwares.

In this article we will talk about the changes done by Apple in Xcode interface, because its important to talk. After the end of this article you would be knowing that why is it important for developers to check out the changes in the interface of Xcode, specially for those who are quite familiar with Xcode form that past. The aim is to show you what has happened to the things we were doing constantly the same way from the last 5 or more releases of Xcode. So lets talk first about object library. 

Object library:

Object library is the placeholder of large number of user interface elements, like buttons, views, labels. Before it was down at the right bottom corner, and it was still there forever for the developers preferably using storyboards design. 

It is shifted to top right corner, and a button is there to pull it out in the form of a window. Keyboard shortcut for this is (Command + Shift + L ).

Code Snippets Library:

Code Snippets is a very useful feature of Xcode called Code Snippets. Via code snippets you can save a lot of typing and speed up the development process. Its available out of the box in the form of code completion.

Start typing ‘for’ and the Xcode opens up a context pop-up and displays matching suggestions. For more details check out this post on the medium. 

Now in Xcode 10, its is like never before. (Command + Shift + L) will open up the code snippets, as well as single click will also open up your own code snippets. 

Editor Over Scroll:

Editor over scroll is new feature in Xcode 10. This feature provides simply extra space by default bottom the last code line inside the code editor. 

Definition and Callers: 

Earlier they introduced jump to definition, but now now they have also introduced callers as well in this new Xcode. Right-click (Jump to definition now also tells the Line number and the file it is defined). Similarly, right click definition, callers shows where the definition is called like the same way, showing file name and line number as well. 

Source Code Control UI Features: 

While working in a large team, you would definitely be using source control like Git. SO whenever you make changes to a portion of code, blue bars gets appear on the left side of the code editor. 

Code Folding: 

Code folding has become quite easy now. They introduced it before, but now its more easy to fold and unfold portions of code. 

Multi-Cursor Editing: 

Multi-Cursor editing has proven to be more on hands habit of developers. Its so simple and it’s going to be very useful while you code. 

Just hold down the (Option) key and click the spots where you want to edit the code. You can also highlight things vertically in order to change things at the same time for different places. (Holding the option key)

Some More Features:

Source code control is now also available with Bitbucket and Git Lab. Last year they announced with GitHub, but now they came out with more options. 

They are also providing Parallel Testing in Xcode10. This allows developers to perform Unit Tests and UI Tests in parallel so in order to speed up the process. 




要查看或添加评论,请登录

Asim Khan的更多文章

社区洞察

其他会员也浏览了