Downloadable code examples for my books, "iOS 12 Programming Fundamentals With Swift" (bk1) and "Programming iOS 12" (bk2).
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
bk1ch01p015yourFirstInstance examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch01p016whatsInAType examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch01p017instanceProperties examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch02p028basicFunctions examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch02p032paramNames examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch02p035overloading examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch02p036defaultParameters examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch02p038modifiableParameters adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk1ch02p043recursion examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch02p044functionAsValue examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch02p047anonymousFunctions examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch02p051defineAndCall examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch02p052closures examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch02p058closureCapture examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch03p067conditionalInitialization illustrate toggle and random; use toggle where possible; minor tweaks… Jun 13, 2018
bk1ch03p069computedVariables examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch03p075lazy examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch03p076boolAndNumbers some beta 3 changes; bug fixed in appendix example; add manual renami… Jul 5, 2018
bk1ch03p086string illustrate toggle and random; use toggle where possible; minor tweaks… Jun 13, 2018
bk1ch03p087stringUnicode examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch03p089strings2 illustrate toggle and random; use toggle where possible; minor tweaks… Jun 13, 2018
bk1ch03p092characterAndRange adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk1ch03p095tuple lots of improvements from redoing the first five chapters of book 1 Jun 17, 2018
bk1ch03p098optionals illustrate toggle and random; use toggle where possible; minor tweaks… Jun 13, 2018
bk1ch03p104optionals2 adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk1ch04p115initializers lots of improvements from redoing the first five chapters of book 1 Jun 17, 2018
bk1ch04p121properties examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch04p125methods examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch04p127subscripts examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch04p132enums prove that an enum with a raw value adopts RawRepresentable Aug 20, 2018
bk1ch04p136enumInitializers adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk1ch04p140structs examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch04p142valueTypesAndReferenceTypes lots of improvements from redoing the first five chapters of book 1 Jun 17, 2018
bk1ch04p149subclasses lots of improvements from redoing the first five chapters of book 1 Jun 17, 2018
bk1ch04p153classInitializers examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch04p158classInitializers2 examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch04p162classProperties examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch04p164polymorphism minor tweaks for book examples Aug 21, 2018
bk1ch04p171typeReference lots of improvements from redoing the first five chapters of book 1 Jun 17, 2018
bk1ch04p172typeReference2 lots of improvements from redoing the first five chapters of book 1 Jun 17, 2018
bk1ch04p177protocols examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch04p181optionalProtocolMembers examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch04p187TypeErasure examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch04p187TypeErasurePrep examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch04p187generics lots of improvements from redoing the first five chapters of book 1 Jun 17, 2018
bk1ch04p193whereClauses examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch04p194whereClauses2 examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch04p194whereClauses3 examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch04p194whereClauses4 lots of improvements from redoing the first five chapters of book 1 Jun 17, 2018
bk1ch04p196extensions minor tweaks for book examples Aug 21, 2018
bk1ch04p197ExtensionOverrideTest get rid of a few warnings Jul 7, 2018
bk1ch04p199umbrellaTypes mostly trying to bring decodeObject more up to date, and use secure c… Jul 20, 2018
bk1ch04p204arrays adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk1ch04p218dictionaries lots of improvements from redoing the first five chapters of book 1 Jun 17, 2018
bk1ch04p222sets some beta 3 changes; bug fixed in appendix example; add manual renami… Jul 5, 2018
bk1ch05p227branching compiles for xcode 10 beta 5 thru bk 2 ch 13; graphics context color … Jul 31, 2018
bk1ch05p230switch examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch05p237conditionalEvaluation adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk1ch05p239loops lots of improvements from redoing the first five chapters of book 1 Jun 17, 2018
bk1ch05p240error minor tweak for book code Aug 15, 2018
bk1ch05p240error2 examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch05p241defer examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch05p246keyPaths tweak Jun 19, 2018
bk1ch05p247dynamicMemberLookup add example of dynamic member lookup Jun 18, 2018
bk1ch05p247operators adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk1ch05p247privacy example of dump(); improve launch-into-rotation-example; remove bad m… Jul 17, 2018
bk1ch05p254memoryManagement minor tweaks for book examples Aug 21, 2018
bk1ch06p297main fix call to UIApplicationMain, they fixed the mistyping bug Jun 6, 2018
bk1ch06p298appSubclass examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch06p300TrulyEmpty examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch07p321nibLoading book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk1ch07p321nibLoading2 examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch07p333outletCollectionAndAction examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch07p339additionalConfiguration examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch08p350documentation examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch09p357backwardCompatibility examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch09p358universal examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch09p360logging add logging example Jun 30, 2018
bk1ch09p380unitTesting slight changes to testing example Jul 1, 2018
bk1ch09p397localization examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch10p418subclassing examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch10p428foundationClasses update for Xcode 10 beta 6 Aug 14, 2018
bk1ch10p440propertyLists tweaks Jul 4, 2018
bk1ch10p447accessorsAndKVC tweaks Jul 4, 2018
bk1ch11p462notifications modernize notification architecture to namespace name inside class Jul 5, 2018
bk1ch11p462notifications2 minor tweaks Sep 15, 2018
bk1ch11p466Timer examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch11p467delegation examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch11p470dataSource examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch11p472action rearchitect nil-targeted action example to illustrate dummy selector Aug 27, 2018
bk1ch11p472action2 rearchitect nil-targeted action example to illustrate dummy selector Aug 27, 2018
bk1ch11p477kvo examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch11p480delayExample examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch12p490autoreleasepool examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch12p495danglingPointer examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch12p497notificationCrasherNot examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch12p497notificationLeaker examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch12p497notificationLeakerSolution examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch12p498timerLeaker examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch12p498timerLeaker2 examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch12p499cancelableTimer examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch12p500MapTableExample examples from book 1 now compile in Xcode 10 beta 1 Jun 5, 2018
bk1ch14Appendix ooops, minor correction Aug 27, 2018
bk2ch01p004appWithoutStoryboard book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p006customWindowInStoryboardApp book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p009experimenting1 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p012frame book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p013bounds book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p015coordinateSpace book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p017transform book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p018TraitCollectionTester simple test example for examining trait collections Sep 13, 2018
bk2ch01p024autoresizing book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p025autoresizingConstraints book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p031constraints let's not swap constraints that stay the same Jul 8, 2018
bk2ch01p031newAnchorMethods book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p032constraintSwapping added some logging Jul 8, 2018
bk2ch01p033layoutMargins book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p034SafeAreaLimits improve safe area demo Jul 21, 2018
bk2ch01p038constraintsInequalitiesAndPriorities book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p038evenDistribution minor tweaks Sep 15, 2018
bk2ch01p038evenDistribution2 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p038evenDistribution3 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p038evenDistribution4 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p039stackViewTest book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p040conditionalConstraints book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p040sizeClasses book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p041constraintSwapping2 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p041designableView added some logging Jul 8, 2018
bk2ch01p045LayoutDrivenTest adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk2ch01p045constraintsOrderOfEvents book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p046transformsAndConstraints book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch01p046transformsAndConstraints2 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch02p050HiResTest2 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch02p051ImageAndTraitCollection unimportant Jul 13, 2018
bk2ch02p052ImageReversal book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch02p052mars book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch02p053marsResizable restore use of UIEdgeInsets.zero which was broken in Swift bug Jul 28, 2018
bk2ch02p056marsSlicing book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch02p057imageRendering book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch02p058cropImageView add image renderer format when rendering image into image renderer Aug 18, 2018
bk2ch02p059sixBlueCircles book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch02p061imageDrawing add image renderer format when rendering image into image renderer Aug 18, 2018
bk2ch02p062vectorResizing add image renderer format when rendering image into image renderer Aug 18, 2018
bk2ch02p070filters playing with the vignette filter examples Aug 7, 2018
bk2ch02p070filters2 playing with the vignette filter examples Aug 7, 2018
bk2ch02p070filters3 miscellaneous minor improvements, that's the end of the code for the … Sep 16, 2018
bk2ch02p071BlurAndVibrancy rewrite blur example so it's more comprehensible Aug 30, 2018
bk2ch02p077drawingInUIView minor tweaks Sep 15, 2018
bk2ch02p086drawingInUIView2 compiles for xcode 10 beta 5 thru bk 2 ch 13; graphics context color … Jul 31, 2018
bk2ch02p087BlackBackgroundIssue update for Xcode 10 beta 6 Aug 14, 2018
bk2ch02p088clearRect add example of drawing CIContext with Metal view; add example of iOS … Jul 14, 2018
bk2ch02p089patternBug compiles for xcode 10 beta 5 thru bk 2 ch 13; graphics context color … Jul 31, 2018
bk2ch03p095layerHierarchy book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch03p101drawingIntoLayer experimentation Jul 15, 2018
bk2ch03p108compass experimentation Jul 15, 2018
bk2ch03p112layerDepth book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch03p113transformLayer1 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch03p114transformLayer2 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch03p116maskUtility book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch03p117maskUtilityView book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p124presentationLayerAcquisition book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p125imageViewAnimation book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p130viewAnimation illustrate toggle and random; use toggle where possible; minor tweaks… Jun 13, 2018
bk2ch04p130viewAnimationWithMask book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p131visualEffectAnimation book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p132viewAnimationFacade illustrate toggle and random; use toggle where possible; minor tweaks… Jun 13, 2018
bk2ch04p133FrozenAnimation book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p133cancelAnimation book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p133cancelAnimation2 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p133cancelAnimation3 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p133cancelAnimationBug book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p133cancelAutoreversingPropertyAnimator illustrate toggle and random; use toggle where possible; minor tweaks… Jun 13, 2018
bk2ch04p134springing experimentation Jul 15, 2018
bk2ch04p135keyFrameViewAnimation book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p135keyFrameViewAnimation2 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p135keyFrameViewAnimation3 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p137transition illustrate toggle and random; use toggle where possible; minor tweaks… Jun 13, 2018
bk2ch04p138transition2 minor code neatening Sep 1, 2018
bk2ch04p148layerAnimation simplify black background example; update runloop code to beta 3 Jul 15, 2018
bk2ch04p148layerAnimation2 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p149keyframeSprite make example smoother Aug 20, 2018
bk2ch04p151customAnimatableProperty book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p153groupedAnimation book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p157layerTransition book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p160frozenAnimation book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p164actions book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p165customAnimatableProperty2 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p165customAnimatableProperty3 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p166emitThis book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p172CIFilterAnimation minor Jul 16, 2018
bk2ch04p175dynamics minor code neatening Sep 1, 2018
bk2ch04p177dynamics2 minor code neatening Sep 1, 2018
bk2ch04p178dynamics3 minor code neatening Sep 1, 2018
bk2ch04p178dynamics4 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p183animationAndAutolayout book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p183animationAndAutolayout2 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p183animationAndAutolayout3 book 2 examples for chapters 1-4 now compile under Xcode 10 Swift 4.2 Jun 5, 2018
bk2ch04p183animationAndAutolayout4 illustrate toggle and random; use toggle where possible; minor tweaks… Jun 13, 2018
bk2ch05p194touches book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch05p203gestureRecognizers add layout-driven UI examples Jul 16, 2018
bk2ch05p203gestureRecognizers2 add layout-driven UI examples Jul 16, 2018
bk2ch05p204Fling book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch05p205dragByAttachment minor code neatening Sep 1, 2018
bk2ch05p205dragByAttachment2 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch05p206gestureRecognizerDelegate book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch05p207gestureRecognizersNib book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch05p208forceTouchGesture let's name notifications the new namespaced way Jul 18, 2018
bk2ch05p208forceTouchGesture2 let's name notifications the new namespaced way Jul 18, 2018
bk2ch05p210hitTesting book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch05p210hitTesting2 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch05p211compassTappable minor Jul 16, 2018
bk2ch05p212hitTestingDistortedLayer book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch05p213hitTestingDuringAnimation book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch05p213hitTestingDuringAnimation2 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch05p216exclusiveTouch hack for setting the "off tint color" of a UISwitch Jul 29, 2018
bk2ch05p217dependency book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p236manualViewController book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p237manualViewController2 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p238nibViewController1 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p239nibViewController2 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p239nibViewControllerWorkaround1 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p239nibViewControllerWorkaround2 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p239nibViewControllerWorkaround3 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p239nibViewControllerWorkaround4 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p239nibViewControllerWorkaround4Universal book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p239nibViewControllerWorkaround5 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p242nibInstantiatedViewController1 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p242nibInstantiatedViewController2 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p243storyboardInstantiatedViewController book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p244downTheRabbitHole book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p246showHideStatusBar example of dump(); improve launch-into-rotation-example; remove bad m… Jul 17, 2018
bk2ch06p250sizeChangeTest book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p253orientationsPermitted book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p253orientationsPermitted2 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p253orientationsPermitted3 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p253orientationsPermitted4 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p257rotationChangesInterface3 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p258launchIntoRotationEvents example of dump(); improve launch-into-rotation-example; remove bad m… Jul 17, 2018
bk2ch06p258launchIntoRotationEvents2 example of dump(); improve launch-into-rotation-example; remove bad m… Jul 17, 2018
bk2ch06p259InitialManualLayout example of dump(); improve launch-into-rotation-example; remove bad m… Jul 17, 2018
bk2ch06p259RotationManualLayout add guard to layout, just to show the technique Jul 17, 2018
bk2ch06p264presentedViewController minor Jul 17, 2018
bk2ch06p265presentedViewControllerStoryboard book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p270modalPresentationContext book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p271presentedViewControllerAdaptive book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p271presentedViewControllerAdaptive2 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p271presentedViewControllerAdaptive3 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p272forcedRotation book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p273rotationCausesPresentation still updating 2nd book examples for beta 6: mostly CGRect method nam… Aug 26, 2015
bk2ch06p275tabbedInterface book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p275tabbedInterfaceRotation book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p281PossibleTitlesTest book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p281navigationInterface add image renderer format when rendering image into image renderer Aug 18, 2018
bk2ch06p282navigationInterfaceStoryboard add image renderer format when rendering image into image renderer Aug 18, 2018
bk2ch06p292customAnimation1 adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk2ch06p300customAnimation3 adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk2ch06p300customAnimation3b adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk2ch06p301customAnimation4 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p302addingPresentationController book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p304customPresentedAnimation2 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p311pageController adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk2ch06p313pageControllerBug book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p316containerController book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p317pageControllerChild adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk2ch06p319containerControllerConstraints book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p320containerControllerCustomAnimation book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p321overrideTraitCollection book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p322containerControllerSizeMessaging book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p324PeekAndPop add logging, fix activity indicator intialization for Swift 4.2 Xcode… Jul 28, 2018
bk2ch06p324containerViewControllerStoryboard book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p325customSegue book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p326PresentedCascadeUnwind book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p326PresentedCascadeUnwind2 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p326TabbedUnwind minor tweaks Sep 15, 2018
bk2ch06p326unwindWithCustomParent book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p327unwind book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p327unwind2 book 2 examples for chapters 1-6 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch06p332eventIncoherencies add missing calls to super (makes a huge difference, alas) Jul 19, 2018
bk2ch06p334containerEventForwarding add missing calls to super (makes a huge difference, alas) Jul 19, 2018
bk2ch06p336memoryWarning show how to run method properly when backgrounding, even though not p… Jul 19, 2018
bk2ch06p341SimplestRestorationExample minor tweaks Sep 15, 2018
bk2ch06p347SimplestRestorationExample2 mostly trying to bring decodeObject more up to date, and use secure c… Jul 20, 2018
bk2ch06p351pageControllerRestoration adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk2ch06p352pageControllerRestoration2 adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk2ch06p353RestorationVsNonrestoration mostly trying to bring decodeObject more up to date, and use secure c… Jul 20, 2018
bk2ch06p353pageControllerRestoration3 adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk2ch06p356saveAndRestoreArbitraryObject mostly trying to bring decodeObject more up to date, and use secure c… Jul 20, 2018
bk2ch07p360scrollViewInCode slight cleanup Jul 20, 2018
bk2ch07p362scrollViewInCode2b book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p362scrollViewInCode2c book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p363scrollViewInCode3 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p366scrollViewInNib book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p367scrollViewInNibAutolayout book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p367scrollViewInNibAutolayout2 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p370contentInset2 revise architecture of UISearchController examples; otherwise, mostly… Jul 23, 2018
bk2ch07p370contentInset3 revise architecture of UISearchController examples; otherwise, mostly… Jul 23, 2018
bk2ch07p370contentInset3b demonstrate effect of content inset on scrolling in code Jul 21, 2018
bk2ch07p372paging book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p374scrollWithTiling book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p375zoom book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p376zoomCentered book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p376zoomCentered2 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p376zoomCentered3 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p378zoomDetailed book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p378zoomDetailed2 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p383dragInScrollView book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch07p384dragInScrollView2 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p398cellBackgroundLayering book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p400separatorInset restore use of UIEdgeInsets.zero which was broken in Swift bug Jul 28, 2018
bk2ch08p402overrideCellLayout add image renderer format when rendering image into image renderer Aug 18, 2018
bk2ch08p403addCellSubviewsInCode add image renderer format when rendering image into image renderer Aug 18, 2018
bk2ch08p405addCellSubviewsInNib add image renderer format when rendering image into image renderer Aug 18, 2018
bk2ch08p406addCellSubviewsNibOutlets add image renderer format when rendering image into image renderer Aug 18, 2018
bk2ch08p407addCellSubviewsInStoryboard add image renderer format when rendering image into image renderer Aug 18, 2018
bk2ch08p411individualCells add image renderer format when rendering image into image renderer Aug 18, 2018
bk2ch08p412SimplestDataSource book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p412SimplestDataSource2 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p416sections book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p416sectionsHeaderFromNib book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p417bareTableOnX book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p424variableHeights revise architecture of UISearchController examples; otherwise, mostly… Jul 23, 2018
bk2ch08p425variableHeights2 revise architecture of UISearchController examples; otherwise, mostly… Jul 23, 2018
bk2ch08p426variableHeights3 revise architecture of UISearchController examples; otherwise, mostly… Jul 23, 2018
bk2ch08p431pickACell book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p438searchableTable revise architecture of UISearchController examples; otherwise, mostly… Jul 23, 2018
bk2ch08p438searchableTable2new revise architecture of UISearchController examples; otherwise, mostly… Jul 23, 2018
bk2ch08p438searchableTable2old revise architecture of UISearchController examples; otherwise, mostly… Jul 23, 2018
bk2ch08p438searchableTable3 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p438searchableTable4 revise architecture of UISearchController examples; otherwise, mostly… Jul 23, 2018
bk2ch08p438searchableTable5 revise architecture of UISearchController examples; otherwise, mostly… Jul 23, 2018
bk2ch08p445deleteTableRows book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p446rowActions hack for setting the tint color of a swipe action button Jul 29, 2018
bk2ch08p447editInsertAndRearrangeRows minor neatening Jul 24, 2018
bk2ch08p451dynamicTableContent book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p451dynamicTableContent2 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p453tableCellMenus book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p454tableCellMenus2 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p460collectionViewCellBackgroundLayering book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p462collectionViewFlowLayout book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch08p466collectionViewFlowLayout2 move more efficient remove(at:) into appendix; use NLTokenizer instea… Aug 17, 2018
bk2ch08p466decorationView fix bug in decoration implementation Aug 14, 2018
bk2ch08p467collectionViewLayoutFromScratchSwift do same name refactoring in other examples, move menu code to a diffe… Jul 24, 2018
bk2ch09p476popovers minor tweaks Jul 25, 2018
bk2ch09p477popoversOnPhone book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch09p481popoverInStoryboard book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch09p481popoverInStoryboard2 minor tweaks Jul 25, 2018
bk2ch09p485PopoverPresentingViewController book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch09p487searchInPopover book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch09p488SecretRetention new example to demonstrate clearly that the detail view controller is… Jul 26, 2018
bk2ch09p488basicMasterDetail book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch09p488universalSplitViewControllerStoryboardTemplateAnalysis add even more logging to this example Jul 26, 2018
bk2ch09p489universalSplitViewControllerStoryboard2 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch09p490universalSplitViewControllerManual book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch09p492TestingMultitasking book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch09p493DragAndDrop1 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch09p493DragAndDrop2 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch09p493DragAndDrop3 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch09p493DragAndDrop4 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch09p493DragAndDrop5 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch09p493DragAndDrop6 book 2 examples for chapters 1-9 now compile under Xcode 10 Swift 4.2 Jun 6, 2018
bk2ch10p495TableWithDynamicType book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p495dynamicType book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p497downloadableFonts book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p498fontDescriptor book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p499fontDescriptor2 minor Jul 26, 2018
bk2ch10p503attributedString book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p504RTFImportTest eliminate now unnecessary predeclaration for nil Jul 28, 2018
bk2ch10p505UnderliningTest wow, Apple finally fixed the bug where option set was being imported … Jul 5, 2018
bk2ch10p507tabStops miscellaneous minor improvements, that's the end of the code for the … Sep 16, 2018
bk2ch10p508AttributedTextAsSecretMarking book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p509attributedStringDrawing book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p510attributedStringDrawing2 book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p510attributedStringDrawing3 book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p511labelHighlightedTextColor book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p512labelBreaking book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p513selfSizingLabel book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p513selfSizingLabel2 book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p513selfSizingLabel3 book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p514labelFontSizeScaling book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p515variableWidthString book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p519TextFieldLeftViewTest new test example for text field internal views Sep 7, 2018
bk2ch10p520tableAutoscrollingTest small logging example to show how a table view autoscrolls when the u… Jul 27, 2018
bk2ch10p520textFieldSliding let's consistently return false from textFieldShouldReturn Jul 27, 2018
bk2ch10p521ScrollViewNotCoveredByKeyboard tiny test to prove that keyboard dismissal by scroll view works on ke… Jul 28, 2018
bk2ch10p522textFieldScrollView restore use of UIEdgeInsets.zero which was broken in Swift bug Jul 28, 2018
bk2ch10p524keyboardAccessory adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk2ch10p525InputViewTest book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p525InputViewTest2 book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p525ShortcutsBarTest book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p526textFieldDelegate let's consistently return false from textFieldShouldReturn Jul 27, 2018
bk2ch10p531selfSizingTextView book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p532textViewAndKeyboard restore use of UIEdgeInsets.zero which was broken in Swift bug Jul 28, 2018
bk2ch10p536exclusionPath book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p537exclusionPath2 book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p539textKitStacks book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch10p541textLayoutGeometry move more efficient remove(at:) into appendix; use NLTokenizer instea… Aug 17, 2018
bk2ch10p543drawingWithTextKit wow, Apple finally fixed the bug where option set was being imported … Jul 5, 2018
bk2ch11p551webview add logging, fix activity indicator intialization for Swift 4.2 Xcode… Jul 28, 2018
bk2ch11p552webkit compiles for xcode 10 beta 5 thru bk 2 ch 13; graphics context color … Jul 31, 2018
bk2ch11p553webkit2 compiles for xcode 10 beta 5 thru bk 2 ch 13; graphics context color … Jul 31, 2018
bk2ch11p554AnchorScrollFail book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch11p555JSAlertTest add logging, fix activity indicator intialization for Swift 4.2 Xcode… Jul 28, 2018
bk2ch11p556CustomScheme add logging, fix activity indicator intialization for Swift 4.2 Xcode… Jul 28, 2018
bk2ch12p564timeConsumingNavigation miscellaneous minor improvements, that's the end of the code for the … Sep 16, 2018
bk2ch12p565customActivityIndicator book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p566customThermometer improve circular thermometer code; note broken search bar scope butto… Jul 29, 2018
bk2ch12p567observingNSProgress book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p568pickerView book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p573searchBarFromHell improve circular thermometer code; note broken search bar scope butto… Jul 29, 2018
bk2ch12p580stepper book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p582datePicker book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p585slider book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p589segmentedControl book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p595button book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p597knob book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p598SliderBubble book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p602TopToolbarTest improve circular thermometer code; note broken search bar scope butto… Jul 29, 2018
bk2ch12p602toolbarShadowBug book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p603PossibleTitles book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p606navigationBar book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p609tabBar book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p611tabBarMore book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch12p612tintColor book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch13p620dialogsOniPhone simplify Aug 3, 2018
bk2ch13p624actionSheetPopovers book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch13p630localNotification miscellaneous minor improvements, that's the end of the code for the … Sep 16, 2018
bk2ch13p631todayExtension modest tweaks to the extension examples Aug 4, 2018
bk2ch13p635activityView add image renderer format when rendering image into image renderer Aug 18, 2018
bk2ch13p635activityView2 book 2 examples for chapters 1-13 now compile under Xcode 10 Swift 4.2 Jun 7, 2018
bk2ch13p636actionExtension update to Xcode 10 beta 6 Aug 14, 2018
bk2ch14p640systemSound minor tweak Aug 4, 2018
bk2ch14p640systemSound2 examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch14p643ducking numerous tweaks to book 2 chapter 16 examples, to deal with MPMusicPl… Aug 6, 2018
bk2ch14p644remote examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch14p653backgroundPlayerAndInterrupter simple test example for examining trait collections Sep 13, 2018
bk2ch14p655AVAudioEngineTest examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch14p655MIDI examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch14p656textToSpeech examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch14p657speechToText examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch15p659SimplestAVKit tweaks to AVPlayerViewController examples; update to compile in Xcode… Aug 5, 2018
bk2ch15p660EmbeddedAVKit tweaks to AVPlayerViewController examples; update to compile in Xcode… Aug 5, 2018
bk2ch15p661EmbeddedAVKit2 tweaks to AVPlayerViewController examples; update to compile in Xcode… Aug 5, 2018
bk2ch15p662EmbeddedAVKit3Storyboard examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch15p672AVKitCALayer tweaks Aug 5, 2018
bk2ch15p672AVKitComposition tweaks to AVPlayerViewController examples; update to compile in Xcode… Aug 5, 2018
bk2ch15p672playerLayer tweaks to AVPlayerViewController examples; update to compile in Xcode… Aug 5, 2018
bk2ch16p677QueueDescriptorTest numerous tweaks to book 2 chapter 16 examples, to deal with MPMusicPl… Aug 6, 2018
bk2ch16p678mediaQuery numerous tweaks to book 2 chapter 16 examples, to deal with MPMusicPl… Aug 6, 2018
bk2ch16p679appendPrependInsertRemove miscellaneous minor improvements, that's the end of the code for the … Sep 16, 2018
bk2ch16p687AVQueuePlayer numerous tweaks to book 2 chapter 16 examples, to deal with MPMusicPl… Aug 6, 2018
bk2ch16p690mediaPicker numerous tweaks to book 2 chapter 16 examples, to deal with MPMusicPl… Aug 6, 2018
bk2ch17p697pickaMovieOrPhoto miscellaneous minor improvements, that's the end of the code for the … Sep 16, 2018
bk2ch17p699photoKitData improvements to chapter 17 examples Aug 7, 2018
bk2ch17p700DinnerAndAMovie improvements to chapter 17 examples Aug 7, 2018
bk2ch17p700PhotoKitImages reworked all examples using EAGL to use Metal, fix orientation proble… Aug 8, 2018
bk2ch17p701LivePhotoDisplay examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch17p702takeAPicture examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch17p704takeAPicture2 examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch17p707takeAPicAVFoundation improvements to chapter 17 examples Aug 7, 2018
bk2ch18p713addressBookNew illustrate a few more Contacts framework features Aug 8, 2018
bk2ch19p725calendar minor tweaks Aug 9, 2018
bk2ch19p731reminders examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch21p744maps add MKMapSnapshotter example, plus minor tweaks, syntax checks, etc. Aug 9, 2018
bk2ch21p761userLocationAndGeocoding add MKMapSnapshotter example, plus minor tweaks, syntax checks, etc. Aug 9, 2018
bk2ch22p773location examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch22p773locationDeferred examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch22p775heading examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch22p780shake examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch22p782lyingDown examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch22p784smackMe examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch22p787gyro examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch22p789attitudeRotation examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch22p790motionActivity adopt secure coding; new example for UIDocumentPickerController Aug 12, 2018
bk2ch23p798basicFileOperations adopt secure coding; new example for UIDocumentPickerController Aug 12, 2018
bk2ch23p799FileWrapperTest adopt secure coding; new example for UIDocumentPickerController Aug 12, 2018
bk2ch23p802fileHandoff update to Xcode 10 beta 6 Aug 14, 2018
bk2ch23p803PickACloudSong tweaks to rest of Files chapter examples Aug 13, 2018
bk2ch23p803QuickLookTest update to Xcode 10 beta 6 Aug 14, 2018
bk2ch23p809peopleGroups add image renderer format when rendering image into image renderer Aug 18, 2018
bk2ch23p810DocumentBrowser add image renderer format when rendering image into image renderer Aug 18, 2018
bk2ch23p818xml examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch23p820JSONTest examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch23p820JSONTest2 tweaks to rest of Files chapter examples Aug 13, 2018
bk2ch23p821SQLite tweaks to rest of Files chapter examples Aug 13, 2018
bk2ch23p824peopleGroupsCoreData examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch23p828PDFs examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch23p829imageIO tweaks to rest of Files chapter examples Aug 13, 2018
bk2ch24p834simpleHTTP move more efficient remove(at:) into appendix; use NLTokenizer instea… Aug 17, 2018
bk2ch24p834simpleHTTP2 examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch24p837lessSimpleHTTP minor tweaks to http examples, illustrating use of task Progress obje… Aug 14, 2018
bk2ch24p838lessSimpleHTTP2 examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch24p838lessSimpleHTTP2b examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch24p842downloader extremely minor comment change Aug 14, 2018
bk2ch24p842downloaderOld extremely minor comment change Aug 14, 2018
bk2ch24p846backgroundDownload examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch24p848onDemandResources examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch24p853bonjour adopt firstIndex instead of index (and test lastIndex); this means we… Aug 6, 2018
bk2ch25p860mandelbrotNoThreading examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch25p862mandelbrotManualThreading examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch25p865mandelbrotOperation minor tweak to do notification names the new way; also, new example t… Aug 15, 2018
bk2ch25p868mandelbrotGCD examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch25p869DispatchTimeTest minor tweak to do notification names the new way; also, new example t… Aug 15, 2018
bk2ch26p878undoableDrag examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch26p878undoableDrag2 examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch26p878undoableDrag3 examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch26p878undoableDrag4 examples from book 2 now compile in Xcode 10 beta 1 Jun 7, 2018
bk2ch28AppendixB move more efficient remove(at:) into appendix; use NLTokenizer instea… Aug 17, 2018
iOS10bookExamples rename iOS 10 examples folder, step 2 of 2 Sep 16, 2018
iOS11bookExamples incorporate and move aside iOS 11 examples Sep 16, 2018
iOS7bookExamples copy iOS 7 book examples off to their own folder Jul 4, 2014
iOS8bookExamples copy all iOS 8 book examples into folder Jun 11, 2015
iOS9bookExamples turn swift3 branch into master, moved iOS 9 examples off into their o… Sep 15, 2016
README.md Update README.md Sep 16, 2018

README.md

These are the complete downloadable code examples for my books, iOS 12 Programming Fundamentals With Swift (http://shop.oreilly.com/product/0636920208655.do) and Programming iOS 12 (http://shop.oreilly.com/product/0636920208662.do).

Examples have been completely revised for Xcode 10, Swift 4.2, and iOS 12.

If you find these examples helpful and you haven't purchased the books, please consider doing so.

The downloadable code for previous editions has been moved off to subfolders "iOS11bookExamples", "iOS10bookExamples", "iOS9bookExamples", "iOS8bookExamples" and "iOS7bookExamples". The code for the earlier editions has been removed.

Matt Neuburg