قالب وردپرس درنا توس
Home / IOS Development / New in Swift, November 2015

New in Swift, November 2015



Norway's top choice for new Swift libraries or tools! Plus a special downturn from the Swift Summit in San Francisco.

The New Apple TV

The new Apple TV release means we have a lot of new sample code running on the device. Two notable things I saw were this emulator frontend Provenance and a streaming BBC frontend.

These represent the two styles of Apple TV apps you're likely to watch on your device: the default video streaming app and more custom draw-anything on the screen app. If I created an Apple TV app and needed somewhere To start, I'll probably look at one of these.


PhoneNumberKit

For those who use Google's libPhoneNumber to validate or analyze phone numbers in your app, PhoneNumberKit attempts to be a clean, quick implementation of the same. Alpha software at the moment, but this can be a lot easier (and easier!) Ways to use phone numbers in your apps.


fastlane deliver

Not new, but new to me! If you are frustrated by the process of uploading and filling out iTunes Connect information under TestFlight or the App Store distribution, deliver for you.

It's a simple command that keeps all app's metadata in text / image files with your project and can sync them or down to iTunes Connect for you. The features surrounding auto-detection of screenshot sizes are awesome .

Fastlane, by the way, recently joined the Fabric team in Twitter. Congratulations on the people involved!


Swift Summit SF

Swift Summit was held in San Francisco in the last couple of days in October, and you presented and participated. A few notes about code from the conference:

Kristina Thai's talk about building watch apps hits my biggest complaint about watch apps so far; There are a million watch apps that do not do anything useful. Really consider what interaction you're building before starting your clock application!

I have not worked a lot with futures / promises in Swift, but I'm a fan of using them for Javascript work. If you find asynchronous image loading or network requests a pain, give Thomas Visser's BrightFutures library a shot. There is also a little sample code that shows how BrightFutures can be used to improve existing code used during the Thomas Presentation here: https://github.com/Thomvis/SFSwiftSummit201

5

If you start writing your own protocols In Swift I strongly suggest keeping Greg Heo's talk handy. It goes down the protocols in the default library and should inform everything from naming to functionality in your own protocols.

Sam Soffes talked about the building table with Static. If you have experimented with Swift protocols, structures and table views, you've probably come up with something similar, but Static is fully equipped and supported by Venmo.

There were some more that I do not see online yet. I update as I find them.


Storage

Finally, to roll out the Swift Summit code, I lived the codes for the beginning of a struct serialization library that I call Storage ].

Storage is native serialization for Swift. Other attempts on serialization will restore NSKeyedArchiver with all its errors, but we can clearly do better with Swift. The goal is to have minimal code to store basic data, similar to how you can use NSKeyedArchiver or NSUserDefaults but in a fast way that does not feel heavy.

Storage on github now with preliminary support for archiving many types (including structures) with minimal boilerplate code. I will write a more detailed message about usage issues for Storage (which are many!) In the coming week, stay up to date. If you are interested in helping you, please check the question tracker!


As always, stay connected to Twitter for more of this kind of stuff during the rest of the month.


Questions or comments? Find us at twitter or send a problem on github


Source link