ios 快說SwiftUI對iOS開發者影響 Apple 在這介WWDC對Cocoa Cocoa Touch 的Developer按了一次Reset,最起碼UI層面上。不少身邊友人看了簡介,立即中年危機上身,開始吐糟門檻又變低了一大半啊,新人湧現啊,存在感決失啊如此這般。但是真的便是這樣嗎?其實同時是,亦都不是。首先,對於開了簡介便下此判斷的人,我想說聲對不起,對你來說,可能真便如此。或許那麼簡單便下判斷,便是你那中年危機的成因。你需要的,不是讓Apple收回成命,而是重新審視這些年來,自己學會了什麼。不是說你一定便不求上進,只是可能在軟件開發的領域裡,你嚴重偏科了。讓我們認真聊聊吧。軟件領域,是進化得最快的一個行業。就算只談UI,在SwiftUI出現之前,
development let’s define struct in a function! Swift Swipe The first time I know I can define a struct within a function body, I was quite surprised. Why the hell I want to do such annoying thing? For naming scope? No, I
boilerplate kickstart iOS your boilerplate Instead clone a project through XX-Boilerplate, I think you might be interested in what we want and why we want to setup a iOS project. After you create a plain new project, the
culture Why Apple? Warn This post is not intend to argue any programming language. Barely related, it would be human language. Before you continue to read, I should warn you first. The following context may require
development Use UICollectionView to implement highly customisable Bar Chart When working on the new product Fruitful, I found that a Bar Chart framework with clear API and easily yet highly customisable is so difficult to find(OK, free is required). What a
development How I hack Pacific Coffee and get free drinks( a lot of)? First of all. The story bellow is done by my own payment as it's an experiment. Also it just work. Also, I will provide a very simple solution for such system. Please don't
development Throw inside a do block and catch it back in Swift? Yes Lazy forks, it's just simple topic, but I did the experiment for you: enum SomeError: Error { case notBig case veryBig } func someErrorFucntion() { do { throw SomeError.veryBig } catch { print(error.localizedDescription) } } someErrorFucntion() // And it
development How I use gyb to achieve a more flexible localization in Swift Localization in iOS is so simple by using system provided mechanism. But it can be a nightmare if you want to achieve a more flexible goal with a so far convenient way to
development Don't write Swift 3 on your "wish list" I've been recently invited by many of company those who need to find a right iOS developer. The interesting part is, in almost all of their skill lists, they all want a swift
development Fewer "guard" more flatMap Swift's guard syntax is good, I admitted. But it's not always the best choice in some cases. Let's consider: something.callback() { someOther:SomeOther? in guard let someOther = someOther else { return } functionTakeSomeOther(someOther) } Indeed,
development Empower your welcome screen video with CIFilter Many of us like our app look trendy. How to be "trendy"? Put a video on the welcome our signup screen is quite a good answer. I am going to share my small
development Map Map Map better in Swift Map function is quite a convenience method that often used in functional(mainly) programming. In Swift, all collection types(Array,Dictionary,Set...) support map. It take a closure that take element type from
culture 書單紙 書讀唔多,只講最正: Programming: The Swift Programming Language 1,2,2.2 Objective-C Programming Language 2.0 Edition Seven Programming Language in Seven Week Think functional Functional Programming with Swift C程序設計 三十日自制操作系統 Code Code
development Modify Images of NSAttributeString Loaded From HTML in ease < div>Sometime we may want to load a html file and show it straightly on textview, fast and convenient. Also we might want to modify the images that automatically load from
development Promise in Swift Part-2 I will show you my implementation: let take = { (s:String) in let c = s print(s) } DispatchQueue.main.async { take("first call!") } // To make our following code cleaner, we delcare a
development Promise in swift? Write your own What is Promise? To me, Promise is just to make async call in a linguistic representation for human read. Think about it: somethingAsync{ ok in use(ok) ... anotherAsync{ ok2 in ... } } It help when