Friday, January 23, 2015

Make OS X Web Browser with Swift

Make OS X Web Browser with Swift



The last swift example we did was using basic text strings. This next example takes what we learned using basic text string and shows how they can be used to make a very basic web browser. By taking basically the user inputed text we will load a web page. Also we will take a basic user field input and take that string and do a basic google web search. The video still stays in the realm of basic, however you can see how quickly the project could and should start using functions and be broken into separate sources files.




Swift for Mac OS X is really not very hard to pick up and makes in a good choice for those who came from Apple Script, Basic, Ruby, Javascript or a Small Talk language to pick up quickly as it is very similar to what you already know.

Swift makes you start  to see very fast why you should consider using it over a 3rd party tool, as it simple to learn and use. Best of all it has access to everything Mac or iOS and is free to use. (note for iOS the webview is done differently. It is kind of the same, however you need to use UIWebview instead. It is also more limited than the webview for Mac in what it can do.)

This video a little long at 30 minutes but covers a bunch. Will likely revisit this project in the future with more advance topics.

Here the video:

(It supports up to 1080p and may even work with the new 1440p Beta resolution.
It may take a while for youTube to Process higher video resolutions upto a hour from posting, I suggest 1080p or higher to read the sourcecode.)

And if you on a mobile device and want to view on the you-Tube app instead here the video link (video quality is better for mobile on youTube app) http://youtu.be/khhi52p9szQ




Thanks and happy coding ;)



3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Is it possible to have the source code project ? :)

    ReplyDelete