Skip to main content

Posts

Showing posts with the label swift

SWIFT PLAYGROUND / Simple Basic AR

Being able to code AR contents and experience very quickly and easily from iPad has always been my dream. Swift Playground app is simply the perfect candidate since we don't have XCode yet on iPadOS but we have this powerful coding app where we can code with Swift and interactively generate 3D Augmented Reality. And that's just one area that can help me to dig deeper into coding programming and eventually making a useful app. AR really presents users with the perfect immersive environment to create an interactive virtual 3D scenes and a lot more that they can simply drop into real life. The limit is only your imaginations. When Swift Playground AR capability paired with other AR app such as Reality Composer to quickly compose 3D scene, attach interactions, audio and behaviour, suddenly you have a very powerful setup for AR. And all can be done via the iPad. We are in luck however; Apparently we can already procedurally generate AR contents and experience since Swift 5.1 ...

SWIFT PLAYGROUND / QR Code Generator

This is a quick test to make QR Code Generator that will run on Swift Playground app on iPad. I sourced some of the code online from few forums. The resulting QR Image on "Playground Preview" is stretched, however it seems to still work when I am using iPhone camera to scan it. Ideally the Playground Preview should not be stretched like this and keeping the QR image square. Saving the QR Code itself is another mystery. The whole code is actually very simple, taking advantage of Core Image CIFilter "CIQRCodeGenerator" as below: import Foundation import UIKit import PlaygroundSupport let data = "https://youtube.com/c/jimmygunawan".data(using: .utf8) let filter = CIFilter(name: "CIQRCodeGenerator", withInputParameters: ["inputMessage" : data, "inputCorrectionLevel":"L"]) let ciimage = filter!.outputImage! let transform = CGAffineTransform(scaleX: 20.0, y: 20.0) let image = ciimage.transformed(by: tran...

SWIFT / Swift Playground on iPad Test

Using Apple  Swift Playground  for the first time is actually quite an interesting experience. There are so many different paths to get HERE, especially when nobody actually guides you. You might be on your own, but you can always try Google Search and look for example and video tutorials on YouTube. Over the past few years, Apple has introduced all these cool tools that probably confuse people at first, but actually make sense today in 2017. I really have to dig into older WWDC as far as 2013 and see what Apple is trying to do. As a total beginner to App Development environment and all kind of actual coding and building interface, control, logics, there are A LOT to make sense. SWIFT PLAYGROUND AS JUMPING STONES I think, THE MOST IDEAL path of actually getting into Apple XCode app development via SWIFT PLAYGROUND is like this: 1) Start with Swift Playground on iPad, not XCode! For beginner coders, whatever your age, maybe even for those who never code b...

IOS / Animation and Easing

I am interested to use Animation and Easing for Sprite for my experimental iOS App. Quick search and stumbled into this Sprite Kit Easing Swift repository at Github. https://github.com/craiggrummitt/SpriteKitEasingSwift My thought is that we can probably use preset animation action that Apple provided, but this one add more. I should actually try the default first. But eventually I know I will be using some of these extra actions. This is entering yet another NEW things! I am discovering something called CocoaPods . Somekind of way to manage versions of dependency when we are using some kind of extension. Read CocoaPods documentation here: https://guides.cocoapods.org/using/using-cocoapods.html Ok so my step by step is like this: - Install CocoaPods, easy enough, via Terminal - Then create Podfile inside the project - Install the Podfile dependency, etc. - All good, we should have a new XCode Workspace (!) that we open the next time we want to run the project with Pod...

STUDY / iOS SCNKit and ARKit from Zero

MY INTEREST in learning Apple Swift and developing iOS app grows sky high as I started to understand the true iOS device capability, especially when Apple announced ARKit for Augmented Reality content creation at WWDC 2017 just few weeks ago. This is actually really huge, for me, especially because as indie 3D Artist, I always have this urge to deliver 3D directly into real life environment. Ideally this AR experience can be presented in realtime by web service like Sketchfab 3D, or perhaps being authorized by Unity or Unreal Engine can be easily transferred and presented as a full 3D render using mobile device like iPhone and iPad, or other smart mobile devices. And apparently yes, with iOS 11, finally Apple says: let's deliver AR. Free / Paid Apple Developer and XCODE I am fairly new with the XCODE environment, but starting to be familiar with it and in fact quite enjoyable, especially with Swift language and introduction of Swift Playground , it seriously gives me an ext...

SWIFT / Swift Playground App

I installed the iOS 10 Beta on my iPad today and just like mentioned at WWDC 2016, with iOS 10 we now have a NEW app called "Swift Playground" that allows users to start digging into programming in Apple Swift language. When I first saw the presentation about "Swift Playground app for iOS 10", I was totally mind blown. That is exactly what I have been asking for many years. A good coding app on iPad. Well, actually we are already able to do some coding on iPad and iPhone using 3rd party apps like Pythonista and Procoding (Processing, Python, etc). But now, we finally got the Apple official coding app built in for iPad. The app is using Swift iOS programming language, and Swift is a kind of nice blend of Python, Lua, and few other high level programming languages. Heard that many programmers are liking Swift, which is a good sign! FIRST TEST SWIFT PLAYGROUND Swift Playground app comes with some tutorials and I guess anyone will definitely start from here. ...