195 Results for 'Swift'

What's New in Swift WWDC 2017 Session 402
Swift. My name is Doug Gregor. I'm here with some of my colleagues from the Swift team to talk about some of the great things we're bringing in Swift 4. Now, if you follow iOS Developer and author Ole Begemann, you actually know everything that's already in
Swift Interoperability In Depth WWDC 2014 Session 407
Swift Compiler Team, and we're here to talk about Swift Interoperabiity. We're going to talk about a couple of different things here. So, of course, Swift is a new language for Cocoa and Cocoa Touch development. Now, Cocoa's not written in Swift. It's written in Objective
What's New in Swift WWDC 2016 Session 402
Swift. Let's start out by talking about the goals for the Swift 3 release. Swift was released as an open source project just six months ago, and a big part of doing that was not just to shove out a bunch of sources to GitHub, but to create a
Integrating Swift with Objective-C WWDC 2014 Session 406
Swift with Objective-C. Now many of the Swift demos here at the conference start by creating either a brand-new project from one of expo's project templates or a playground and that's great. Playgrounds are a great way to explore the Swift language. But many of you
Swift API Design Guidelines WWDC 2016 Session 403
Swift. And that's every bit as true whether you're writing your API for a million other developers or just for yourself inside your own app. Because good design really does matter. So, we're going to be talking about the Swift API Design Guidelines today. These are new
What's New in Swift WWDC 2018 Session 401
Swift. This has been an exciting year for Swift and the Swift Community. And over the next 40 minutes Slava and I are thrilled to give you an update on the major developments there. The session is roughly broken in to two parts. First I'm going to give an
Introduction to Swift WWDC 2014 Session 402
Swift. Before we get started, I want to share you a little, a little fact. So we announced Swift yesterday at the keynote and, as part of the announcement, we made available to you this document. It's the Swift Programming Language. It's the guide and reference to the
What's New in Foundation for Swift WWDC 2016 Session 207
Swift. This year the Foundation team has put a lot of effort into improving the way that you use the Cocoa and Cocoa Touch APIs in Swift. We started by working on the Swift API Design Guidelines. After that, we looked at how all of the Objective-C code that
What's New in Swift WWDC 2015 Session 106
Swift. So a lot of what this is is I want to thank you for all the feedback you have. You guys are continuing to shape Swift through all the great feedback the producers have that use it. Second up is safety. Safety is a core value of Swift. We
Advanced Swift WWDC 2014 Session 404
Swift project and a horrible nerd. And today I want to talk to you about how, you know, you can take advantage of really, all of the language tools that we've built into Swift to make your code so much more expressive, and powerful, and safe. We're going
Platforms State of the Union WWDC 2017 Session 102
Swift Playgrounds. I'm going to hand it over to Matthew [inaudible] for that. [ Applause ] Thank you, Andreas. Swift Playgrounds has brought something new and important to education teaching programming to kids in a fun way using real code. And the response has been tremendous. After less than ten months
Improving Your Existing Apps with Swift WWDC 2015 Session 403
Swift. Can I get a show of hands, how many of you are actually using Swift in your code right now? Okay. Excellent. Then you are all at the right session, whether you've done it or not. Hopefully by the end of it you will all be using Swift
Swift and Objective-C Interoperability WWDC 2015 Session 401
Swift and Objective-C over the last year, especially in the areas of interoperability. And this is important because all Objective-C APIs are available in Swift. And in Xcode 7 we made it even easier to see how this mapping works. Go to any Objective-C header and choose
Platforms State of the Union WWDC 2016 Session 102
swiftly becoming friends with them. And on that note, here is Chris Lattner to talk about Swift. [ Applause ] All right. Thanks, Robby. Let's dive in to what's new with Swift? Now, it's easy to forget that we launched Swift and released it less than two years ago
Understanding Swift Performance WWDC 2016 Session 416
Swift Performance. I'm Kyle. Arnold and I are so excited to be here today to talk to you guys about Swift. As developers, Swift offers us a broad and powerful design space to explore. Swift has a variety of first class types and various mechanisms for code reuse and
Getting Started with Swift WWDC 2016 Session 404
Swift. I'm Dave Addey, and together with my colleagues Brian and Alex, I'd like to give you a quick overview of the Swift Programming Language. In the next 60 minutes you'll learn enough about Swift 3 to be able to read Swift code and hopefully to start
Advanced Swift Debugging in LLDB WWDC 2014 Session 410
Swift inside your application and you can use the debugger to help you step through your code, look at your data and figure out how your fancy new Swift features are interacting with your existing code base. And of course, if it ever happened that there were bugs in your
Intermediate Swift WWDC 2014 Session 403
Swift. My name is Brian Lanier. I'm an engineer in Developer Publications. Later I'll be joined on stage by my colleague, Joe Groff, who is an engineer on the Swift compiler team. We're both really excited to be here today to talk with you more in depth
What’s New in Swift Playgrounds WWDC 2017 Session 408
Swift Playgrounds. My name is Connor. I'm an engineer on the Swift Playgrounds Team. And today, along with my colleagues Grace and Najla, I'll be sharing with you some of what's new in Swift Playgrounds since last year's conference. Today's session will be broken up
What's New in Foundation WWDC 2017 Session 212
Swift range to help convert between NSString's use of NS range and Swift's string and its range. This is especially useful for classes like AttributedString and RegularExpression. In NSXPCConnection, we've added support for, better support for NSProgress. And this is actually really interesting for that first item
Platforms State of the Union WWDC 2014 Session 102
Swift. Swift is the brand-new developer, brand-new program language designed by Apple specifically for Cocoa and Cocoa Touch. It works beautifully with our system APIs, and it's designed with the common programming patterns on our platforms in mind. Now, there are a lot of program languages out
What's New in Xcode 6 WWDC 2014 Session 401
Swift. And Swift is exciting enough on its own, but we didn't stop there. Playgrounds provide a live and responsive environment for you to develop code. Whether you're exploring new technologies, like Sprite Kit physics courses, or just playing around with Swift itself, you're going to love
Create Your Own Swift Playgrounds Subscription WWDC 2018 Session 413
Swift Playgrounds Subscription. We hope you had a great time at the bash last night and we know you're all feeling bright eyed and bushy tailed and ready to learn about Swift Playgrounds. My name is Grace. And my name is Holly. I'm a software engineer on Swift
Building Faster in Xcode WWDC 2018 Session 408
Swift. Dealing with complex expressions in Swift. And how to limit your Objective-C to Swift interfaces. So let's talk about parallelizing your build. Now, Xcode configures your projects through the use of projects through the use of targets. And targets specify the output or the product that you
Optimizing Swift Performance WWDC 2015 Session 409
Swift Performance. My name is Nadav, and together with my colleagues, Michael and Joe, I am going to show you how to optimize your Swift programs. Now, we, the engineers on the Compiler Team, are passionate about making code run fast. We believe that you can build amazing things when
What's New in LLDB WWDC 2015 Session 402
Swift debugger. It is a step forward, obviously, in being able to write and develop the Swift code that you have come to know and love. But more importantly it wasn't our last step. We continued to improve that debugger and we hope your continued feedback will help us
Introduction to LLDB and the Swift REPL WWDC 2014 Session 409
Swift, maybe some people have tried a Playground. It's gone a little faster than that. [ Laughter ] I am really impressed. You guys, I look on the labs, I look on Twitter. You guys have apps started already, entire apps running in Swift. I saw somebody with a raytracer. It
Platforms State of the Union WWDC 2015 Session 102
Swift. [ Cheers and applause ] CHRIS LATTNER: All right. Thank you. Thank you, Toby. The response to Swift has been amazing, and it's really actually hard to believe that it was unveiled just one year ago. When we talked about Swift back then, we talked about some of its major
Improving Your App with Instruments WWDC 2014 Session 418
Swift is a pretty big deal this year, and we're really excited about what it offers. But as you go out and adopt Swift in your application, whether it's by adding a new Swift class or even converting some of your current code to Swift we want to
What's New in Cocoa WWDC 2016 Session 203
Swift API guidelines and secondly, the general API refinements we've been doing. So let's get started. Now as you heard probably yesterday or if not, this morning, we have new API design guidelines in Swift. And these guidelines still embrace Cocoa conventions and practices and I'll just
What's New in Cocoa WWDC 2014 Session 204
Swift. Swift, for instance, has a stricter definition for the property is and by declaring the properties explicitly in Objective-C, we allow them to be exposed properly in Swift as well. Now, one consequence of all this is that as you build your applications against the new SDKs, you
Introducing Swift Playgrounds WWDC 2016 Session 408
Swift Playgrounds is a really exciting new app for iPad that allows you to program in Swift and brings the power of Swift literally to the tips of your fingers. If you aren't that experienced with programming, we've got you covered. We've built a great learn to
Swift Generics WWDC 2018 Session 406
Swift standard library. And, together with my colleague Doug, from the compiler team, we're going to talk to you about Swift generics. So, the recent releases of Swift have added some important new features, including conditional conformance, and recursive protocol constraints. And, in fact, with every release of Swift
Localizing Content for Swift Playgrounds WWDC 2017 Session 410
Swift Playgrounds. I am Alex Kuhn. I'm an engineer on the Content team, developing content for Swift Playgrounds, and I'll be joined later by Aaltan Ahmad from the Internationalization Team. Now it's a big world out there full of many different diverse people that would love to
Finding Bugs Using Xcode Runtime Tools WWDC 2017 Session 406
Swift, you might be wondering why should I care about Address Sanitizer? Swift is a much safer language but the reality is that a lot of projects are still mixed and they have bugs written in C and Objective C. And for those parts that are written in C and
What's New in Cocoa WWDC 2015 Session 202
Swift. The changes also improve our Objective-C APIs as well. As you know, Swift provides features to express APIs more precisely. For instance, you can indicate this is an array. The Subviews property is an array of NSView, not just an array. You can indicate that a method such
What's New in Cocoa WWDC 2017 Session 207
Swift 3. We have a number of global symbols, as you can see here, coming across S strings. And then we have methods like let method in a sharing service that takes an argument of type string. Now in Swift 4, we've introduced a new type called name. This
Efficient Interactions with Frameworks WWDC 2017 Session 244
Swift string, the backing store is actually an NSString and it's bridged from Objective-C. And so, now let's take a look at what happens when we ask for that label's text from Swift. The NSString form the framework is a reference type, while Swift's string
Keynote WWDC 2014 Session 101
Swift and it totally rules [laughter]. Swift is fast. It is modern. It is designed for safety. And it enables the level of interactivity and development that you've never seen on the platform. When it comes to speed, Swift is great. Compare Python a popular scripting language with Objective
Swift Playgrounds WWDC 2014 Session 408
Swift code. The code that would be run and the result are, and generate results to display automatically every time you edit your Playground file. Swift Playgrounds also can contain a folder of embedded resources which are made available to your code or your Playground can reference resources elsewhere on
Protocol-Oriented Programming in Swift WWDC 2015 Session 408
Swift. Why not? It's because Swift collections are all value types, so the one you're iterating and the one you're modifying are distinct. Okay, number two on Crusty's list, class inheritance is too intrusive. First of all, it's monolithic. You get one and only one
Building Modern Frameworks WWDC 2014 Session 416
Swift with all of these things, versus what makes it feel like there's a little bit of friction there. All right, so please make sure that you're filing those [inaudible] on how you'd like it to work. Let's take a quick look at a Swift function
What's New in Core Data WWDC 2014 Session 225
Swift. You have questions, and I'm here to give you answers. This is a fragment from an email that came through one of my mailboxes sometime over the last several months. It basically says well, the rest of the message basically said, Swift is intended as a language for
Inside SwiftShot: Creating an AR Game WWDC 2018 Session 605
Swift. Swift's type safety, performance and advanced features like protocol extensions let us focus more on the gameplay and worry less about crashes and mismatched interfaces between code layers. Those are the iOS technologies we use. I'll talk about how we use those as we implemented several of
Swift in Practice WWDC 2015 Session 411
Swift team at Apple. Alex and I have the real honor and privilege to talk to you this afternoon about some great ways to use Swift in practice to find more issues in your code at compile time. This is a pretty broad theme, so we decided to focus on
Building Better Apps with Value Types in Swift WWDC 2015 Session 414
Swift. First, we are going to start off talking about reference semantics, and then we will delve through immutability as a solution to some of the problems that reference semantics pose. Dive into value semantics and value types, how it works, especially how it works in Swift, and then talk
What's New in Cocoa for macOS WWDC 2018 Session 209
SWIFT BRIDGED TYPEDEF, which is effectively a typedef. Now, here's what the Swift exposure of this looks like. In Swift 4, NSImage.Name came across as a struct, which is the way you would declare the string enumerations. In Swift 4.2, it's as a typealias, a simple, good old
What's New in Cocoa Touch WWDC 2018 Session 202
Swift 4.2. And for Swift 4.2 we really wanted to make sure that UIKit had a really great feel when used in Swift across your app, especially where it interacted with other Swift Standard Library or places that Swift had common patterns. So, we audited all of UIKit and made
Keynote WWDC 2015 Session 101
Swift. And I get a number of hits, everything from Taylor Swift, to what I was looking for, Apple's new programming language. So it's a beautiful feed, and what's really cool about this is there are powerful machine learning algorithms that analyze the contents of the articles
Teaching with Swift Playgrounds WWDC 2017 Session 416
Swift Playgrounds. My name's Bill Dudney, I'll be joined shortly by my colleague, Elizabeth, to talk about teaching with Swift Playgrounds. So, you might have noticed, over the last few years we started with Hour of Code, and even some initiatives before that, that the whole world is
Low Energy, High Performance: Compression and Accelerate WWDC 2015 Session 712
Swift as well. [ Applause ] So everything from here on in the talk or in my piece of the talk is going to be Swift, all of the examples are Swift. For the most part, everything is about exactly the same in C, Objective-C and C++. If you want to
App Startup Time: Past, Present, and Future WWDC 2017 Session 413
Swift, and the reason is Swift is designed in such a way that it avoids a lot of pitfalls that C, C++ and Objective-C allow you to do. Swift does not have initializers. Swift does not allow certain types of misaligned data structures that cost us time in launch
What's New in Xcode WWDC 2015 Session 104
Swift 2, building on the new programming language we introduced last year. Swift 2 is faster across the board, not only will your apps run faster when you're running and debugging in Xcode, more importantly, they'll run faster on customer devices. Swift 2 also includes a number of
Advanced iOS Application Architecture and Patterns WWDC 2014 Session 229
Swift. And that's just because I like Swift quite a lot. But the topics we're discussing in this particular section really don't require Swift. All right. So with the journaling application, write down what's going on in your life, keep track of things. Maybe you're
Improving Existing Apps with Modern Best Practices WWDC 2016 Session 213
Swift 3, which is a Swift API for Grand Central Dispatch. So, instead of that C API we had before, I can now say a dispatch cue, which cues the main cue. What kind of operation? An asynchronous one. We don't need that anymore. And here's what I
Using and Extending the Xcode Source Editor WWDC 2016 Session 414
Swift specific entity into the source which is known to the Swift compiler, and it dereferences out to a call to UIImage image mamed. So you can see all of your images now in place, instead of just the name string. And we have this for colors too. So I
Extending your App with Safari App Extensions WWDC 2016 Session 214
Swift API that you can use to check at runtime whether Safari services APIs whether Safari services APIs are available. Let's step through the Swift code API. If SFSafari service is available returns true, you can safely use the new API. If not, fall back to other behaviors. These
Advanced Debugging with Xcode and LLDB WWDC 2018 Session 412
Swift. And Swift is a strict language and doesn't allow you to call functions that haven't been strictly defined. However, Objective-C [inaudible] code can run wild and free in Objective-C world and you can pretty much do whatever you like. I mean it's a dynamic
Continuous Integration with Xcode 6 WWDC 2014 Session 415
Swift support. So how does Xcode Server deal with Swift? Well, it deals with it just like it deals with Objective-C. It does complete feature parity with Objective-C projects. So whether you have a pure Swift project, whether you have a mixed Swift and Objective-C project, Xcode
Introducing Create ML WWDC 2018 Session 703
swiftly, something that harnesses the power of our Xcode, something that puts the focus on you, our developers, something that just demystify machine learning for you. Hence we are introducing Create ML. [ Applause ] Our machine learning framework in Swift. So Create ML completes the left had side of the equation
Audio Unit Extensions WWDC 2015 Session 508
Swift, we can't recommend that you do this on OS X because the Swift API is subject to change. If you build your plug-in against one version of the Swift runtime and you are loaded into a host that happens to be using another version, there could be
What's New in LLVM WWDC 2016 Session 405
Swift Playgrounds app, has joined it with similar internal uses of LLVM. LLVM is also an integral part of the inner workings of Metal and our other graphics APIs. LVVM is open source. Apple has a long history with open source compilers and languages. The Swift language was born out
Authoring Rich Playgrounds WWDC 2015 Session 405
Swift compiler's pretty great, it isn't able to actually create structs out of thin air yet. So what we're using instead is a feature which we added in Xcode 6.3 called Auxiliary Sources. The auxiliary sources are additional Swift source files, which are embedded inside of your
Optimizing App Startup Time WWDC 2016 Session 406
Swift structs. So Swift tends to use less data that has pointers for fix-ups of this sort. And, Swift is more inlinable and can better co-gen to avoid a lot of that, so migrating to Swift is a great way to improve this. And one other thing, you
Core Image: Performance, Prototyping, and Python WWDC 2018 Session 719
Swift-centric environment, a lot of that can be done as well using Swift playgrounds, and we encourage you to look at a session on creating your own Swift playgrounds subscription. All right. Let's take a look at the main components of PyCoreImage. So, PyCoreImage leverages Python bindings for
Continuous Integration and Code Coverage in Xcode WWDC 2015 Session 410
Swift trigger. In this case, just like the bash trigger, I go ahead and set it up using the hash bang for user bin swift. I haven't finished writing it, so bear with me while I do that. I am going to get import foundation. This is where I
What's New in Cocoa Touch WWDC 2017 Session 201
Swift 4 and Foundation. So, there's actually a lot of really exciting additions to Swift 4. And I'm only going to cover two things, now. The first is archiving Swift native types. So, if you've attempted to use Swift 4 native types like enumerations and structs with
What's New in Cocoa Touch WWDC 2016 Session 205
Swift 3 is probably the first thing here. Because with Swift 3, every single API we have is new again. Because we change the rules, we change how we translate from Objective-C to Swift. And we are doing that, to make your code better so it can feel native
What's New in SpriteKit WWDC 2015 Session 604
Swift. We have gone through the entire API and we've applied nullability qualifiers and we've adopted Objective-C generics on any array types that are used for paramaters or return types and this will allow you to access the full power of SpriteKit from Swift without any hassle
Data You Can Trust WWDC 2018 Session 222
Swift app, If you're writing a Swift app, this is something you have to be mindful of. Swift can't catch Objective-C or C++ exceptions, and so this can lead to a fatal error in your app. Now again, this can lead to a crash and a bad
Profiling in Depth WWDC 2015 Session 412
Swift is easy. Kris has done that. KRIS MARKEL: I have a Swift implementation ready to go, this is an easy port of the Objective-C implementation with a couple of the suggestions they made in this morning's session about improving Swift code, specifically turning on whole module optimization
Best Practices for Building Apps Used in Business and Education WWDC 2016 Session 304
Swift. This is the newest most secure, fastest runtime. If you aren't looking at Swift, looking how to adopt Swift, go to the Swift labs this week. I think you'll be impressed. I'm impressed with the language, it's truly stunning. I shouldn't have to tell
Getting the Most out of Playgrounds in Xcode WWDC 2018 Session 402
Swift, create learning environments or others, and prototype parts of your app. Let's get started with a quick tour of Playgrounds in Xcode. When you first open a playground, Xcode shows you the standard editor. This is the basic editor mode you use in Xcode with a couple additions
SceneKit in Swift Playgrounds WWDC 2017 Session 605
Swift Playgrounds. My name's Michael DeWitt and I'm really excited today to give you an inside look into how we use SceneKit to make the Learn to Code content. So hopefully many of you are already familiar with Swift Playgrounds, but let me show you Learn to Code
Using Store Kit for In-App Purchases with Swift 3 WWDC 2016 Session 702
Swift. So that's really exciting. We've got some new APIs. There's a couple other things that are new, so Swift API, so that's really great. Last week, many of you probably also heard that we have a lot of big announcements around subscriptions. This is something
What's New in LLVM WWDC 2017 Session 411
Swift may be wondering, what's the big deal here? Swift has a unified syntax, #available, for querying API availability at runtime, and the compiler can even catch missing availability checks at compile time. For more information on availability in Swift, you should check out the Swift in Practice talk
Embracing Algorithms WWDC 2018 Session 223
Swift and test your code because it'll trap. But if you had to learn this lesson as a C-programmer, like I did, you might not be so lucky. Okay. So, we can fix it by replacing the for loop with a somewhat uglier while loop, which lets us
I Have This Idea For An App... WWDC 2018 Session 203
Swift. Now familiarity with a programming language will help you today. But if you're new to Swift or looking for a helpful resource, I recommend downloading the App Development with Swift book from the Apple bookstore. Or checking out the Swift Playgrounds app for iPad. Later [inaudible] is going
Apple Design Awards WWDC 2016 Session 103
Swift. It's using the latest tools. It's using multiple storyboards, storyboard references, auto layout, size classes. Did I mention it was done in Swift? Did I mention that this is their first iOS app? This is a really great app. Congratulations to the team. Back to you, John
What's New in Audio WWDC 2017 Session 501
Swift meta that we saw in the demo. And that is because, it is not safe to use Objective-C or Swift runtime from a real-time context. So, instead, the engine itself provides you a render block that you can search and cache, and then later use this render
What's New with Wallet and Apple Pay WWDC 2016 Session 704
Swift 3, maybe you've already seen some of the big changes in Swift 3. We have improved our API for Swift users. We've actually completely rewritten our sample code, talk about that later. One change that's coming, didn't make seed one, but it will be in
Accessing Health Records with HealthKit WWDC 2018 Session 706
Swift codable or JSON serialization. If it's really fundamental to your app that you have full access to this information Swift access to this information Swift codable and JSON serialization may not be appropriate tools. And with that, I'd love to hand back to Peyton and see what
Introducing MusicKit WWDC 2017 Session 502
Swift 4.0 to parse this data, and it really makes it easy to convert JSON data into strongly typed Swift structures. You can simply define a few Swift structures that conform to the codable protocol, and then you can feed such structures to the JSON decoder. In this case, I
Designing for Future Hardware WWDC 2015 Session 801
Swift. And when I say we are going to port them to Swift, I don't mean that we are going to make a fully functional, feature-rich Swift app. It is a lot like the Prototypes in that there are screen shots and they animate based on user touches
Delivering an Exceptional Audio Experience WWDC 2016 Session 507
Swift using an overlay on the SDK. And this takes the audio bufferList and makes it look something like a vector or array. So having converted the rawBufferList to the nice Swift wrapper, I can query its count. And if I got at least one buffer, then I can render
Introducing Network.framework: A modern alternative to Sockets WWDC 2018 Session 715
Swift. So here's what you do. You first import the network module. Then, you create an NWConnection object. object. So an NWConnection in either Swift or in C is the fundamental object for reading and writing data. In this case, we have a convenience that initializes your endpoint with
TextKit Best Practices WWDC 2018 Session 221
Swift. So we can set the text and the formatting properties dynamically at runtime. Now back in Interface Builder, we'll go ahead and add two more labels. Now everything fits pretty well, but we have one more thing we need to do here. So looking back at Apple News
What's New in Interface Builder WWDC 2014 Session 411
Swift as our language. I just want to make sure this is added to the right target. You want to make sure to add it to your framework target. And now our class is created. So two steps down already. The third step is to tell Interface Builder that this
What's New in Cocoa Touch WWDC 2015 Session 107
Swift. This is taking advantage of the better expressiveness that Swift offers and to improve compile-time type checking. For nullability, you can now specify whether properties actions and return values can be nil or not. We have gone through our entire API and defined where it's valid to
From Art to Engine with Model I/O WWDC 2017 Session 610
Swift and Metal. It's a single-pass forward renderer, physically-based shader, mesh instancing, skinned and animated meshes, multiple materials. Ticking off lots of bullet points there. It's got a straight forward rendering loop. We have on the left side of the diagram, some meshes to draw. For
Sharing code between iOS and OS X WWDC 2014 Session 233
Swift. If you literally translate how you would shim with Objective-C, this will not compile in Swift. There are ways to shim your code in Swift. But it gets more complicated than your basic conditional compilation that we can use in Objective-C. So just a side note about
What's New in Apple Pay & Wallet WWDC 2017 Session 714
Swift. PKPaymentButton is a UI button subclass. You just provide a type and a style. We have buttons in black, white, and white with an outline. Let me show you the same button in HTML. So, this is the new CSS style it was introduced in iOS 10.1. There's
Adopting Metal, Part 1 WWDC 2016 Session 602
Swift struct that contains a position vector for the vertex, as well as a color for the vertex. You can just lay them out contiguously in memory. Now let's talk about how you actually create buffers. So the API for this is on the device that you've already
SceneKit: What's New WWDC 2017 Session 604
Swift and Objective-C. During the demo, I insisted on the camera behavior because this is something that is really difficult to write. We are seeing many questions and related requests on developer forums about this, and so we are, we improved our camera API in this release to both
Managing Apple Devices WWDC 2014 Session 702
Swift book so we're going to learn some new things. And Mark's now going to push a PDF for the device. So this is going to be an enterprise book. And this is will have the same open rules as any other managed assets on the device. So
CloudKit Tips and Tricks WWDC 2015 Session 715
Swift 2. I'm pleased to announce with iOS 9, the experience of using CloudKit from Swift is much better. Let me give you a couple of examples of what I'm talking about. Up until now, you had to use the old set object for key, object for key
What's New in Metal, Part 1 WWDC 2016 Session 604
Swift. So like many Metal objects, the Metal resource heap has a corresponding descriptor object. So let's create a heap descriptor and set the size to the amount of memory to back the heap. With the heap descriptor we can ask the device to create us a heap object
Modernizing Grand Central Dispatch Usage WWDC 2017 Session 706
Swift 3, then you can stop listening to me, because you're already in that form and that the only world you're living. However, if you have an existing cloud based, or you use older versions than of Swift, you need to do some extra steps. So, let's
Core ML in depth WWDC 2017 Session 710
Swift class. Your workflow looks a bit like this. You start with a machine learning model, you drag and drop that model into Xcode, Xcode will automatically generate a Swift or an Objective C interface for you to program against that model. You write your application code, you build it
Accelerate and Sparse Solvers WWDC 2017 Session 711
Swift. And there's sort of three main use cases that are going to drive you to use simd. The first is if you're doing 2 by 2, 3 by 3, 4 by 4 vector and matrix arithmetic, the sort of thing that comes up all the time when
What's New in Core Location WWDC 2015 Session 714
Swift. We have a fancy new pound available in Swift in response to this. If you are at runtime with a location manager that has knowledge of this property, you can set it to yes. Otherwise you can assume it's already set to yes and you don't have
Now Playing and Remote Commands on tvOS WWDC 2017 Session 251
Swift dictionary with some keys that are provided by the framework and I'm simply providing my values as regular Swift types. There are two properties that I want to call out in particular though. The ElapsedPlaybackTime and the PlaybackDuration. Like I mentioned earlier, you should provide these keys so
Introducing Core ML WWDC 2017 Session 703
Swift generated source has arrived in the application. What that means is we can actually use this generated code to load the model and predict against it. To show you, let's go to the ViewController. The first thing I want to do is define this flower model. And to
What's New in Signing for Xcode and Xcode Server WWDC 2017 Session 403
Swift symbols option. What this is going to do, is it allows the App Store to scrip Swift symbols from the Swift standard libraries in my app. And that's going to greatly reduce the download size of my app for my customers. So, I'm going to leave that
Safari Extensibility: Content Blocking and Shared Links WWDC 2015 Session 511
Swift right here. And this Swift is pretty straightforward. It just creates an NSExtension item, populates its user info, gives it an attributed title and some context text. Content text, excuse me. And it calls complete request returning items with an array of in this case one item. Let's
Touch Bar Fundamentals WWDC 2017 Session 211
Swift lazy variable here for the Touch Bar property. And the first time the Touch Bar property is accessed, Swift is going to go ahead and run this block to instantiate our Touch Bar. All the code to create the item in bar and stuff we looked at in the
Developing tvOS Apps Using TVMLKit: Part 2 WWDC 2016 Session 229
Swift application. Here we're looking at the Swift code for our TVML app's app delegate. We've implemented a stub here for the UIApplication delegate method to handle custom URL schemes. If we wanted to pass this URL down into JavaScript, all we have to do is ask
Building Apps with ResearchKit WWDC 2015 Session 213
Swift and we added both nullability and generics to it so you can use it with Swift 2. 0. So what are some of the important properties of the base class. The first and probably the most key property is the identifier and this is a string that you the
Creating Modern Cocoa Apps WWDC 2014 Session 227
Swift. So Lister is sample code that we're making available to you, and there's links at the end of this talk to download all four versions of it, so I really recommend that after this talk you check-out the sample and see some of what we think
Core iOS Application Architectural Patterns WWDC 2014 Session 224
Swift book. If you go look at the Swift book and then you tap on related books, you should see the HIG book in there. In there, there's a whole section where we spend time talking about something called an application definition statement. Many people who have unfocused applications
The Keys to a Better Text Input Experience WWDC 2017 Session 242
Swift Playgrounds is another good example. This is the Swift Playgrounds app. They have the standard QWERTY layout, but they provide a lot of additional functionality for frequently used symbols in the Swift programming language. And they also have a really nice accessory bar in the top here, for quickly
OpenGL ES Shading and Advanced Rendering WWDC 2010 Session 417
Swift: Thank you, Luc. So as Luc mentioned, my name is Michael Swift, and I get to talk to you about lighting and shadowing for the remainder of this session. So let's start off with lighting. So what you see up here is our unlit world, just static and
What's New in Cocoa Touch WWDC 2014 Session 202
Swift, congratulations. Here is your intro, and you can see just how easy it is to understand. And this will give you an idea of how easy it is to start adopting Swift immediately with all Cocoa and Cocoa Touch APIs. So with that, I'll talk about quickly another
What's New in Internationalization WWDC 2015 Session 227
Swift, we promoted this to a first class function. It takes five parameters, three of which have default values. Interestingly, in Swift, we've made it such that the comment argument is non-optional. This is really emphasizing this is a critical argument. It provides context for your translators. A
What's New in ResearchKit WWDC 2016 Session 234
Swift, it uses best practices not only for Swift and ResearchKit, but for iOS in general. It has a great architecture for a ResearchKit app. You can even start with that app and you'll have a great start on your own research. Also build and run the ORKCatalog app
What's New in Web Development in WebKit and Safari WWDC 2015 Session 501
Swift or C++ or other class-based syntax languages. So here I have a simple example of a polygon class written in the standard prototype syntax. But in ES6, a new syntax has been introduced, an object, a class-based syntax that looks very familiar to anyone who comes from
Advanced Debugging and the Address Sanitizer WWDC 2015 Session 413
Swift, and converted some of the classes from Objective-C. It's very much a hybrid application. It also now uses size classes in its storyboard, and has fully adopted AutoLayout. So, since we changed and added all this new code this year, it's a pretty good bet that
What's New in Testing WWDC 2017 Session 409
Swift interface as part of the Swift 4 effort and we've also added a new block-based teardown API that lets you structure context specific teardown in your test methods without additional state or properties in your test classes. In UI testing we've introduced a new element type
What's New in Network Extension and VPN WWDC 2015 Session 717
Swift. Let's just call it packet tunnel. Great. Now I have a new target and I can start building my VPN provider. So let's jump ahead to the actual process of writing this. My protocol happens to be based around UDP. It uses UDP to talk to the
Measuring Performance Using Logging WWDC 2018 Session 405
Swift and in C, but the coolest thing is we've integrated them with Instruments. So that means Instruments can take the data that signposts produce and give you a deep understanding of what it is your program is doing. So first a little history. We introduced OSLog a couple
Introducing the Contacts Framework for iOS and OS X WWDC 2015 Session 223
Swift [ Applause ] BRUCE STADNYK: We are as excited about this as you are. There are many design goals with this new Contacts Framework. I'm going to review a few of the key ones with you now. One, to address the majority of apps that are mostly get contacts and
60 Second Prototyping WWDC 2017 Session 818
Swift, but the problem with that is that once you get committed to code, you're really deep into how your app is going to work, and you don't get much leeway to explore all the alternatives that you could. Or you might want to dive into Sketch, and
Practical Approaches to Great App Performance WWDC 2018 Session 407
Swift code, as you work your way into the system libraries, you'll see this. You'll often see its counterpart functions, OPC, Load Strong, Load Weak, etc., Retain, you can remove all that content from the call tree by context clicking on it, and choosing Charge OPC to Callers
Creating Complications with ClockKit WWDC 2015 Session 209
Swift in projects so you can take code written in an existing app and pull it over into your new watchOS 2 app and as long as you include the header for that in your Swift bridging header, it will just work, which is cool. So here is my soccer
Introducing Natural Language Framework WWDC 2018 Session 713
Swift APIs. But that's not it. We now have support for custom NLP models. These are models that you can create using Create ML and deploy the model either using Code ML API or through Natural Language. Everything that we support in Natural Language, all of the machine learning
What's New in Core Audio WWDC 2015 Session 507
Swift as well. It supports low latency real-time audio. Using AVAudioEngine, you will be able to perform a variety of audio tasks, like play and record audio, connect various audio processing blocks together to form your processing chain. You could capture audio at any point in this processing chain
Visual Debugging with Xcode WWDC 2016 Session 410
Swift 3 this year. On the right, I'm just using QuickTime Player to stream the device's screen back to the desktop so we can all see it. Our team was tasked with adding an in-game instruction manual to DemoBots, so we implemented a How To Play screen
Web Inspector and Modern JavaScript WWDC 2014 Session 512
Swift, this will be right up your alley as far as JavaScript goes. It allows you to return like multiple objects in an array. In this case, I have an array of two numbers here. And traditionally, I would have to collect that in a result object. And I would
Prototyping: Fake It Till You Make It WWDC 2014 Session 223
Swift. We are super excited about Swift. But today, we're going to use Core Animation and Xcode with Objective-C. This is because that's what we've been using in our prototyping group so far. Quick word about writing code for our prototype: It's different from writing
Introducing On Demand Resources WWDC 2015 Session 214
Swift, Objective-C, C++ as well as some base resources, and the levels in the game, for example, if this is a game. When you, the developer, are happy with this game or application, you upload it to the store, and when the user comes along and buys the app
Focus Interaction in tvOS 11 WWDC 2017 Session 224
Swift as well. And what status is telling me is that there is an item currently focused, it's one of those poster cells. But obviously, if we take a look it doesn't appear focused and so this points to some kind of potential issue with the visual appearance
Performance on iOS and watchOS WWDC 2015 Session 230
Swift and it's type inference and it's wonderful, I will tell you this returns a double, and specifically, that double represents the current time in seconds. A second is actually a really long time. Your user is really going to feel it if something in your app takes
Natural Language Processing and your Apps WWDC 2017 Session 208
Swift 4, we've moved from generic strings to named types for tags, as well as tagSchemes. And finally, we've made significant improvements to the underlying implementation of NSLinguisticTagger. The API interface is still the same, but the entire implementation underneath has been [inaudible] from scratch. Just to make
Build Better Apps with CloudKit Dashboard WWDC 2017 Session 226
Swift code so that you can build it into your application. Now, because fetching changes is such a common thing, we've built the ability to play and experiment with it right inside the Dashboard. So, let's go take a look. Alright. So, up on the screen, on the
Mastering Core Data WWDC 2010 Session 118
Swift to wrap it up. So Core Data has been around on the desktop since 10.4 Tiger, on iPhone OS since 3.0 last year, and obviously on the iPad earlier this spring. The purpose of this session is to help you become more proficient with our technology. We are, this
Ingredients of Great Games WWDC 2014 Session 602
Swift and Playground. We have tools like the Metal or OpenGL Debuggers. We have SceneKit and SpriteKit editors. And, also this week, we have a mass amount of sessions about games. We have three on Metal, two on SceneKit, two on SpriteKit. We have labs on all of these technologies
Best Practices for Building SpriteKit Games WWDC 2014 Session 608
Swift. The editor, as Norman showed earlier, let's you do visual feedback, visual editing, feedback is immediate. And you can also simulate the physics live. We also have, and have had for the long time, the ability for you to edit .plist files inside Xcode. And it's as
What's New in SpriteKit WWDC 2014 Session 606
Swift and Objective-C. So, out of the box you are good to go and have a brand new scene created for you and ready for drag-and-drop and play, create your level, and making sure your game is running on day one. Not only can you use SpriteKit
Introducing the Photos Frameworks WWDC 2014 Session 511
Swift. No jokes, please. I'm a software engineer on the iOS Photos Frameworks Team. All right. So, we're really excited about introducing you to PhotoKit today. PhotoKit is comprised of two frameworks. The first framework is the Photos Framework, which gives you access to the photos and videos
Camera Capture: Manual Controls WWDC 2014 Session 508
Swift, because we're going to talk about cameras today, specifically camera developments on Yosemite and iOS 8. If you want to hear about that you've come to the right place. If you're new to Camera Capture in general on OS X or iOS we invite you to
Your App, Your Website, and Safari WWDC 2014 Session 506
Swift. Probably most of you in this audience. But it's also going to take the back-end website administrator. It's also going to take the back-end website administrator. Whoever's running user accounts, state, databases, all that sort of stuff. But finally, it's also going to
Harnessing Metadata in Audiovisual Media WWDC 2014 Session 505
Swift" talk [ Silence ] so get intimate with your neighbors here. [ Silence ] My name is Adam Sonnanstine. [ Silence ] I'm an engineer on the AVFoundation team [ Silence ] and today we are going to talk about, of course, metadata. [ Silence ] So what do I mean by metadata? [ Silence ] Well, for the purposes
iOS Accessibility WWDC 2015 Session 201
Swift and the rest of the p roject is in Objective-C, so accessibility works in both languages and it can coexist just like the rest of your code. So let's see. It's not accessible. If we look down, we can see that the reason it's not
What's New in MapKit WWDC 2015 Session 206
Swift compatibility, and we also added a WatchKit support to launch maps applications on your watch from your own application. So that's it, so that's all the improvements that we have done to existing features in MapKit. Let's move on to the next topic and personal favorite
WatchKit In-Depth, Part 1 WWDC 2015 Session 207
Swift, and you have up to four different things you can add code for. So for the storyboard, this is the interface part of it, you can edit in IB just like you would an iOS application, and we provide a reasonably rich set of interface elements, labels, images, et
What's New in HomeKit WWDC 2015 Session 210
Swift. [Applause] There you go. So over here we have our HomeKit Accessory Simulator. This simulates HomeKit accessories that are used by our developers to develop their HomeKit applications. And over here we have our HomeKit sample app that, you know, that you can use that accesses all our HomeKit
Optimizing Your App for Multitasking on iPad in iOS 9 WWDC 2015 Session 212
Swift. You should do that instead. Next, you should use the Allocations instrument to find and fix retained cycles and unbounded memory growth. Last, you should use the Time Profiler instrument to find and fix inefficient algorithms. I'm not going to talk about any of these problems today. These
Mysteries of Auto Layout, Part 2 WWDC 2015 Session 219
Swift as well. For example, it doesn't make sense to say that the leading edge of a view should be 100 because there's no context in which to interpret that 100. So you get an error that this method isn't available on a location anchor. Similarly, it
What's New in Core Data WWDC 2015 Session 220
Swift also introduced the block API with this really good talk What's New in Core Data on iOS in WWDC 2011. Last I wanted to talk about performance. Over time we start adding attributes to the models, the amount of data that's carried by your users gets larger
What's New in NSCollectionView WWDC 2015 Session 225
Swift you can do that, in a DidSetObserver clause here, you will also want to do the same for watching when the items selected state, the Boolean, changes to yes or no, you want to take the highlightState, and the selected state, into account together, and decide visually how to
Testing in Xcode 6 WWDC 2014 Session 414
Swift are great languages for expressing the API, semantics of the API, they're self-documenting. We think, okay, our job is done. But in truth, they don't really account for all the possible permutations of inputs to those functions. So if you write tests, those tests help codify
CloudKit JS and Web Services WWDC 2015 Session 710
Swift. I know many of you in the audience may already have a CloudKit application, but if you don't, let's look quickly about how to get started with a new CloudKit application. So the first thing to do is to create a container. You can do this either
Introducing Watch Connectivity WWDC 2015 Session 713
Swift. Update Application Context can return an error. And if an error is returned, the Catch block will be invoked, and we strongly suggest that you handle your errors appropriately. So that's the sending side for application context. Now, let's take a look at the receiving side. On
Advanced Scrollviews and Touch Handling Techniques WWDC 2014 Session 235
swift version of hitTest:withEvent. This is our, of course, function syntax right there. So the first thing that hitTest:withEvent does is it checks to see whether or not the point being passed in that you're trying to hitTest is actually within the view or not. And it
iMessage Apps and Stickers, Part 1 WWDC 2016 Session 204
Swift and click Next. And I'm going to call this NatureStickerBrowser ViewController. Great. So I'm going to go ahead and import UIKit. And then I'll go ahead and import Messages. Great. So now let's create our class. I'm going to go ahead and create our
Advanced User Interfaces with Collection Views WWDC 2014 Session 232
Swift and all of the other stuff they've been doing, those guys-so, those were our requirements and that was kind of a lot, I mean on top of all the other stuff that the rest of the guys had to do. But I want to talk about the
Making Apps Adaptive, Part 1 WWDC 2016 Session 222
Swift and Objective-C because it means that if the definition that enumeration changes if a new case comes in I'm going to get build time warnings if I'm using an exhaustive switch statement. So I would just really encourage you guys to do that as well, that
Architecting for Performance on watchOS 3 WWDC 2016 Session 227
of the related sessions, unfortunately have already happened, but some of these I feel are important to not only WatchKit development but, we have concurrent program on GCD in Swift 3, so that's also important as well. So thank you and have a wonderful rest of the week. [ Applause ]
Designing with Animation WWDC 2015 Session 803
Swift, HTML, CSS. So these are great tools, but for those of you that don't know those tools or don't have access to them, there is Keynote. And that's what we are going to be using today because it's very quick to make animations, and it
Extending Your Apps with SiriKit WWDC 2016 Session 225
Swift file. Now again, this UnicornCore framework is a framework that we implemented for our application and we use it in all of our Unicorn apps, like Unicorn Pay or Unicorn Rides. It's a great way to share code for our application and for all of our extensions. We
What's New in International User Interfaces WWDC 2016 Session 232
swiftly on over to watchOS. So watchOS 2.1 added Arabic and Hebrew as selectable system languages. And what this means for your apps is that watchKit is now right to left aware. So all watchKit elements now do the right thing when running in Arabic or Hebrew. We have an
Affiliate Tools for App Developers WWDC 2014 Session 301
Swift just yet. So here we have the implementation for the ViewController, and this is the key method right here. This is the method that I have defined on the ViewController class, which I've called simply Store Sheet for Product - takes three parameters, the itunesId, the affiliateToken and the
Introducing Expanded Subscriptions in iTunes Connect WWDC 2016 Session 301
Swift 3 session that happened earlier today. This is a great session to learn how to integrate your app using StoreKit with all the things we talked about today, including how to check for seats and other things that you can do with in-app purchases. There's also the
Security and Your Apps WWDC 2015 Session 706
Swift apps. So here we have a secret and we want to store it in the Keychain using SecItemAdd. To do that, we construct a dictionary which includes both the secret and some attributes describing how to find it in the future and what protection it should have. This pattern
Apple Pay Within Apps WWDC 2015 Session 702
Swift or Objective-C. So you can really easily get up and running. It's because of that, we think it's the preferred option for most developers. And many, many payment platforms support Apple Pay already. Here are just a few. There are many more. We have a list
Deeper into GameplayKit with DemoBots WWDC 2015 Session 609
Swift and the max function to combine things. In this case we actually we want hunting the PlayerBot or hunting the TaskBots to be represented by the strongest grade available of the ones we have. Looking at these numbers, it is pretty obvious we'll hunt the PlayerBot. Now that
Managing 3D Assets with Model I/O WWDC 2015 Session 602
Swift. All right. Down to the nitty-gritty of data types. So MDLAsset is the thing that you get from a URL and it's the big overall container that you will often be working with. It's an index container, you know, for fast enumeration and stuff, it has
A Guide to Turi Create WWDC 2018 Session 712
Swift. So if you didn't catch that session I do recommend you add it to your watch list. The goal of Turi Create is to help you add intelligent user experiences to your apps. For example, you might want to be able to take a picture of your breakfast
Apple Pay on the Web WWDC 2016 Session 703
Swift from the web. And so we are going to talk now about the new JavaScript API that's supporting this feature. And to do that, I'd like to ask Anders from the WebKit Team onto the stage. Anders. [ Applause ] Thanks Nick. I am really excited to be here
Typography and Fonts WWDC 2016 Session 803
Swift Playgrounds. It's also in default in Xcode. Check out the new theme right there. Okay. So, that was small bit on San Francisco and the new SF Mono family. Next I want to talk to you about some type terminology. Get us all on the same page on
Managing Documents In Your iOS Apps WWDC 2018 Session 216
Swift. For example, JPEG images and HEIF images are both kinds of images. And, .image conforms to our root type for user-created, or user-visible, documents, which is called public.content. Now, public.content has other children, like, for example, public.spreadsheet. You can find this list of types in the documentation
Introducing Drag and Drop WWDC 2017 Session 203
Swift struct. Next, I make a drag item. I go up to the drag-and-drop level. So I make a UIDragItem with that item provider. And finally, I just return that single item. The new API essential is on the drop side. Now, while you're dragging that object
Seamless Linking to Your App WWDC 2015 Session 509
Swift, to gather all of the components at once, and compare them in a single line, s/videos,/WWDC, something that may or may not be a year. I want to take a look at that value, which is a string right now, and turn it into an Int. So I
Cocoa Development Tips WWDC 2017 Session 236
Swift, you can use typealias to do the same thing. And if you're coming to the Mac from iOS you may remember that NSWindowController is often a class that you want to use rather than NSViewController. So, check it out and think about it. And our last tip from
Building Apps with Dynamic Type WWDC 2017 Session 245
Swift check on why this is happening. This is happening because the table view's row height is set to a constant value, hundred. This makes that these cells do not have cell size at all. To fix this and make this cells have size we have to set the
Filtering Unwanted Messages with Identity Lookup WWDC 2017 Session 249
Swift 4 to decode the response. I'll paste some code I've already written to do this, but let's briefly walk through it. I first define a struct, which describes the JSON format that my server returns, then I create a JSON decoder instance and I use it
Localizing with Xcode 9 WWDC 2017 Session 401
swift standard libraries, and launch. And we can see our application is running in Russian. And not only are all the formatters and everything correct for all of our dates and our numbers, but we also have all of that Russian text that we just imported. So, to summarize, strings
Implementing UI Designs in Interface Builder WWDC 2015 Session 407
Swift, IB outlets are by default implicitly unwrapped optionals. If you have an outlet between a view controller and one of the views in its hierarchy you can safely unwrap that optional after viewed load. Sometimes you will have an additional property stored on your view controller that affects the
Introducing Metal 2 WWDC 2017 Session 601
Swift, Objective-C. Let's say in the example of our renderer, if you have a ton of objects, but you probably have very few materials, so what you can do is reference the material from each object and save some memory or you can build your scene graph as
Engineering for Testability WWDC 2017 Session 414
Swift Standard Library. It begins by setting up an array of unsorted values. It calls the sorted method on that array. And then asserts that the returned array has the values in the expected order. Generalizing this, we can see that the test structure consists of first, setting up any
What's New in Photos APIs WWDC 2017 Session 505
Swift file. And we will call this animator. And there's my animator. I'm not going to walk you through all of this. But it's really, really simple. So, I'll just tell you a few things it's doing. When I'm initializing the animation I want
Image Editing with Depth WWDC 2017 Session 508
Swift code illustrating how we can apply our custom kernel to our original image once it's been constructed from the source code you see above. We pass in our image extent as well as a list of arguments. Here these are the original image, the normalized disparity map, and
Introducing ARKit: Augmented Reality for iOS WWDC 2017 Session 602
Swift as well as ObjectiveC as well as the content technology. So the content technology is what you're going to use to render your augmented reality scene. You have the option between SceneKit, SpriteKit as well as Metal. I'm going to use SceneKit for this example. So after
Privacy and Your Apps WWDC 2017 Session 702
swift code shown here. As you can see, three consecutives calls using this API, will return three random, unrelated values. And for example, you can leverage UUIDs to generate short-lived identifiers. For example, you can associate a new UUID with each session in your app. Another example is the
What's New in Core Bluetooth WWDC 2017 Session 712
Swift Playground's announcements this year, and really making things more interactive for children and people who are first learning to code. And we love seeing how easy it is for people to take things like sensors or buttons or switches and enable those through their apps and enable them
iOS Configuration and APIs for Kiosk and Assessment Apps WWDC 2017 Session 716
Swift Playgrounds and not let them out until they can explain the difference between a struct and a class, for instance. Whatever scenario you want, you can lock a child to a particular application. There's another technology you'll often see in Kiosks, single app mode. This is useful
UI Testing in Xcode WWDC 2015 Session 406
Swift and Objective-C, so you can choose the native coding language that you're most comfortable with. XCTest was introduced in Xcode 5 as a unit testing framework. In Xcode 6, we expanded it to support performance testing. This allows you to catch regressions in your code, and ensure
Cocoa Touch Best Practices WWDC 2015 Session 231
Swift, you can take advantage of the new pound availability syntax to put all your version-specific code into a block that the compiler can understand and reason about and let you know if you are doing anything wrong for a particular version. Whichever technique that you end up using
Testing Tips & Tricks WWDC 2018 Session 417
Swift and Foundation, but, by putting this together in the one method, I [inaudible] the maintainability and especially the testability of this code. Looking at the base of our testing pyramid, what we really want to be able to do here is write focus unit tests for each of these
What's New in LLVM WWDC 2014 Session 417
swiftly along with a wide variety of new improvements. To start with, back in September we introduced the Apple A7 processor which has been just absolutely magnificent in what it's allowed us to do, bringing truly desktop-class performance to your mobile devices and LLVM plays a key role
What's New in HealthKit WWDC 2015 Session 203
Swift's new guard statement to return early if those are nil. Next, we instantiate a workout with the activity type that the user performs, the start and end date, and the total active energy burned and distance. I'm also creating an array with all of the samples that
What's New in SceneKit WWDC 2014 Session 609
I strongly encourage you to download it and give it a try. It's almost as fun as Swift. [ Laughter & Applause ] For more information, please contact our Evangelist Allan and Filip. We have a brand new documentation for you in the developer website and also a dedicated forum. Thanks. [ Applause ]
Adopting New Trackpad Features WWDC 2015 Session 217
Swift case with your event mask for when you call nextEventMatchingMask. Once you get the next event, the very first thing you do, you give that event to the Alignment Feedback filter, it's going to return right away, it just updates some internal state. You move excuse me, if
Building Document Based Apps WWDC 2015 Session 234
Swift. And that tells us that your application is able to handle this. Now there is also a bit of code you'll have to write, and that comes in the form of a new delegate method. How does that look? Well, let's say you already are opening documents
Advanced Testing and Continuous Integration WWDC 2016 Session 409
Swift. And your tests are compiled to bundles before they're run. Xcode, that's the IDE for authoring your tests, and you can also run individual test while you're developing. Xcode is also where you review reports from both local test runs and from Xcode Server. And talking