General iOS, CS questions and interview prep resources.
-
iOS Interview Questions for Senior Developers (useful even if you're not senior yet)
General iOS, CS questions and interview prep resources.
iOS Interview Questions for Senior Developers (useful even if you're not senior yet)
This is a curated list of iOS (Swift & ObjC) frameworks which are inspired by React and Elm.
// | |
// DisplayLink.swift | |
// MetalMac | |
// | |
// Created by Jose Canepa on 8/18/16. | |
// Copyright © 2016 Jose Canepa. All rights reserved. | |
// | |
import AppKit |
extension Sequence { | |
func reduce<A>(_ initial: A, combine: (inout A, Iterator.Element) -> ()) -> A { | |
var result = initial | |
for element in self { | |
combine(&result, element) | |
} | |
return result | |
} | |
} |
// Original article here: https://www.fivestars.blog/code/redacted-custom-effects.html | |
import SwiftUI | |
// MARK: Step 1: Create RedactionReason | |
public enum RedactionReason { | |
case placeholder | |
case confidential |
Author: Chris Lattner
struct ContentView: View { | |
var body: some View { | |
VStack{ | |
Label("Hello Label", systemImage: "sun.min") | |
.font(.system(.title, design: .rounded)) | |
Label("Title only label", systemImage: "sun.min") | |
.font(.system(.title, design: .rounded)) |
// Run any SwiftUI view as a Mac app. | |
import Cocoa | |
import SwiftUI | |
NSApplication.shared.run { | |
VStack { | |
Text("Hello, World") | |
.padding() | |
.background(Capsule().fill(Color.blue)) |
I hereby claim:
To claim this, I am signing this object: