Post is pinned.Post has attachment
#macOS #swift4 #SwiftPM #component #cli #script #xcode9
ScriptKit
by Tof: What is ScriptKit?
ScriptKit is a framework to write command line tools. This framework provides a context that reproduces the basic instructions we have in a script language like Bash, Python or Ruby. It allows a quick portage of existing script to swift.
Do I have to be a Swift Guru?
No 😁. ScriptKit has been designed to be as simple as possible. You can see ScriptKit as a container that give you access to list of basic instructions.
What is the advantage of using ScriptKit?
ScriptKit allows to create a real executable that will be much faster than a script in Bash, Python or Ruby. With ScriptKit you generated an executable with no dependencies. It is therefore very easy to install and you don't need to manage an environment like for Python or Ruby.
If you are an iOS or macOS developer you will no longer need to juggle with different languages. You can use Xcode to develop and debug your command line tools, your iOS app or macOS app. You will stay focus on Swift and spend your time improving your skills in Swift.

Post has attachment
#ios #swift #ODR #on #demand #resource
On-Demand Resources in iOS Tutorial
by James Goodwill : iOS 9 and tvOS introduced the concept of on-demand resources (ODR), a new API used to deliver content to your applications after you’ve installed an app.
ODR allows you to tag specific assets of your application and have them hosted on Apple’s servers. These assets won’t be downloaded until the application needs them, and your app will purge resources from your user’s devices when they’re no longer needed. This results in smaller apps and faster downloads — which always makes users happy.
In this tutorial, you’ll learn the basics of on-demand resources including:
- Tagging and downloading individual resources
- Looking at Xcode’s Disk Report to see which resources are on the device
- How to organize resources into different tag types
- Some best practices to make sure your users get the best experience

Post has attachment
#ios11 #swift4 #ARKit #demo #ruler
ARuler
by ZeXu Du: Mesure distance using apple ARKit

Post has attachment
#ios11 #swift4 #vision #text #detection
Using Vision Framework for Text Detection in iOS 11
by Sai Kambampati: Among many of the powerful frameworks Apple released at this year’s WWDC, the Vision framework was one of them. With the Vision framework, you can easily implement computer vision techniques into your apps with no higher knowledge at all! With Vision, you can have your app perform a number of powerful tasks such as identifying faces and facial features (ex: smile, frown, left eyebrow, etc.), barcode detection, classifying scenes in images, object detection and tracking, and horizon detection.

Post has attachment
#ios11 #swift #NFC
Working with CoreNFC in iOS 11
by Charles Truluck: At WWDC 2017, Apple announced a long wanted system framework for developers, CoreNFC. If you are not familiar with NFC, simply put, NFC (short for Near Field Communication) allows two devices to communicate with each other when placed within 4cm of each other. Most businesses put NFC chips in cards, enforcing tighter security of who can enter a building. Apple’s CoreNFC currently supports one single NFC format, NFC Data Exchange Format, or NDEF (commonly used in most tablets and phones on the market today).



Post has attachment
#ios11 #swift4 #ARKit
ARKit introduction
by Ricardo Pereira: Apple has announced at WWDC17 a new iOS framework called ARKit. It's a framework that "allows you to easily create unparalleled augmented reality experiences for iPhone and iPad". The framework is shipped with the iOS 11 (currently in beta) and it's only supported by iOS devices that are powered by Apple's A9 or A10 chip. This means that it won't be working on older devices like iPhone 5S or iPad Mini. In addition, you can't use it in the simulator so you have to update your iPhone/iPad with the latest beta (iOS 11 SDK is only available in Xcode 9).

AR - creating the illusion that virtual objects are placed in a physical world using a camera.
We know that Augmented Reality isn't new but AR is getting a lot of buzz right now because of the Apple's new framework. One of the first and probably the most famous app that showed us the power of AR in apps was Pokemon Go. Achieving apps with the same interactivity as Pokemon Go isn't easy and that's why I think that ARKit will make the difference.

With this new framework, AR will be more accessible to developers by bringing native AR support to iOS. It does lighting estimation using the camera sensor, it can analyse what's presented by the camera view and find horizontal planes like tables and floors and it can place and track objects on anchor points. You can even render 3D objects using Metal, SceneKit, and third-party tools like Unity and Unreal Engine. ARKit does all of this with great performance and it's well documented.

Need some ideas to use ARKit? You can check madewitharkit and get a feeling about what's possible to achieve by incorporating this framework on your apps.

Post has attachment
#ios11 #swift4 #stackview #custom #space
Stack View Custom Spacing
by Harrison: When Apple introduced stack views in iOS 9 they made it much easier to use Auto Layout by reducing the number of constraints you needed to create yourself for many common layouts. One edge case that was not well covered was the need for custom spacing between views. You could do it by nesting stack views but that always seemed an unnecessary complication. In iOS 11 you can create stack views with custom spacing between views.

Post has attachment
#ios #swift #UserNotification #UNUserNotificationCenter #Gif
iOS UserNotifications in Swift
by Sam Agnew: Local notifications provide a core functionality in many apps, and in Swift they are easy to add to whatever you’re building. With iOS10’s UserNotifications you can even display GIFs in notifications.
Let’s build a quick application to display a local UserNotification containing a SEGA-related GIF and a prompt for the user to continue receiving notifications.

Post has attachment
#ios11 #swift4 #CoreML #machine #learning
Can Core ML in iOS Really Do Hot Dog Detection Without Server-side Processing?
by Jaz Garewal: Machine learning has quickly become an important bedrock for a variety of applications. Its mobile implementation, however, has been out of reach for many in the mobile app development community. The training and implementation processes for machine learning libraries require dedicated processing power, which is outside the purview of mobile devices. That processing power requirement and existing frameworks usually mean that a server-side component is necessary for even the smallest, machine learning-backed apps. Finally, training a machine learning model requires a good deal of knowledge that lies outside the normal developer spectrum.


Post has attachment
#ios11 #swift4 #ARKit #tutorial
ARKit Tutorial in Swift 4 for Xcode 9 using SceneKit
by Jameson Quave: In this tutorial I’m going to show you how to work with ARKit, the new Framework from Apple that allows us to easily create Augmented Reality experiences in our iOS apps. The first thing to know about ARKit is that it can be used in three major ways:
- Inside of Xcode writing Swift or Obj-C Code
- Inside of the Unity game engine
- Inside of the Unreal game engine
Wait while more posts are being loaded