How do I build a Network Layer
Reusable, easy to build and maitain network layer with almost 100% test coverage
iOS: A Beautiful Way of Styling IBOutlets in Swift
Trim Your View Controller With This IBOutlet Trick
Finding contours on paper sheet scans
First step to handwritten digits recognition - collecting data from paper sheet scans
iOS: Prototyping button-like control with nice animations
Again inspired by work on dribbble.com - Building control on top of UIControl
iOS: Custom View Controller Transition by expanding view
Implemented custom view controller transition inspired by work on dribbble.com
Redesigned blog and changed to Jekyll
Migrated the blog from Wordpress to Jekyll.
Small break in writing - job seeking
Seeking for a job is hard and very time consuming. I'll be back soon.
iOS: Selecting audio inputs
Getting proper audio input for audio recording.
Xcode: BUILD FAILED while building project using xcodebuild and Xcode 7.2
Workaround for building project for simulator using xcodebuild and Xcode 7.2.
CocoaPods: Ensure that your team uses the same version to install pods
A trick that help you and your team in cocoapods install and updating process.
Swift: Detach completion handler of a method to a function
It makes your code a bit cleaner.
iOS: Passing data back using unwind segue instead of delegate pattern
Nice way to pass data back without using delegate pattern.
iOS: Realm instead of Core Data
Let's take a look how easy to use Realm is.
Xcode: XCConfig files for managing targets configurations
Easier configuration management using XCConfig files.
CloudKit: Introduction and let's build an app
CloudKit getting started.
My absence and work in Palo Alto in October
Working and enjoying free time in California.
iOS: 3D Touch, impressions and thoughts
Few thoughts about 3D Touch.
Swift: Why Float, Double and Int are AnyObjects?
This is a question I asked yesterday, and copy-pasted my question details and answer I get on StackOverflow topic just to have it here.
iOS: Undo and redo with NSUndoManager
NSUndoManagerwas mysterious thing to me for a really long time. I wanted to learn using it, and actually never got a time. To date. I wrote a simple app that allows to create rectangles that can be moved around and change their properties like background color or corner radius.
Xcode: Moving view in storyboard and keeping it on the same level in hierarchy
I am playing a bit with storyboards and was thinking if there is a way to move view without changing its level in views hierarchy. And, there is one.
Xcode: Trick shows how to create constraint to Top of UIViewController's view instead of Top To Layout Guide
This is a pretty useful trick that my colleague Piotr Tobolski shown me recently when I was struggling with Auto Layout (mainly cleaning it up).
iOS: Initialization process of a view loaded from a storyboard
This post is continuation of the UIViewController’s view loading process demystified post I’ve wrote some time ago. I’d like to cover how custom view is loaded when it is placed in a storyboard.
Swift 2: Error handling using ErrorType, throws, try and do-catch
Swift 2.0 brought us
ErrorType. Let’s take a brief look on it.
iOS: Using UIMotionEffect to add perspective to a view when tilting device
UIMotionEffectis a class that provides motion-based modifiers for views. It allows views to react on tilting of a device - nice class that I’ve learned about today.
Swift 2: @NSManaged can be used for autogenerated methods
Another addition to Swift 2 in Xcode 7 beta 5. We can use
@NSManagedto declare autogenerated methods when using to-many relationships.
Swift 2: Force-unwrap failable initializer when chaining to it from convenience initializer
Xcode 7 beta 5 is out and there is nice addition to Swift. It is more about Xcode 7 beta 5 compiler, but still it is available in Swift 2.
Thoughts and impressions after creating and submitting 2048 game in 10 hours
That was pretty effective Saturday. Writing game was an interesting process and I played a lot 2048 that day. Here are my thoughts and impressions.
iOS: UIViewController's view loading process demystified
@NatashaTheRobot posted about testing view controllers and issues with loading views on her blog in The One Weird Trick For Testing View Controllers in Swift post.
Strings with length variations in iOS 8 with Swifternalization
iOS 9.0 provides new way to select and display proper localized string variation depending on screen width. With Swifternalization 1.2 you can use the feature also in iOS 8.0.
- Open Sourcing City Bike, Free Bike Finder app for iOS and Apple Watch
Energy Efficiency Guide for iOS released with new Xcode 7 beta 4
Apple released “Energy Efficiency Guide for iOS Apps” few days ago when releasing Xcode 7 beta 4. Note about this document is in the change log.
iOS 9: Getting single location update with requestLocation()
Apple added new API to CoreLocation framework. One of the available methods is
requestLocation()which allow to get single location update.
iOS: Low Power Mode
“Even longer battery life.” - Apple says. Low Power Mode is a new feature of iOS 9 which lets iOS users extend their devices battery life. For now up to one hour, but hey, this is additional one hour, right?
Swift 2: Enums marked "indirect" in Xcode 7 beta 4
Apple released Xcode 7 beta 4 today with some fixes and many improvements of the Swift language. One of them is
indirectattribute for enums and its cases.
iOS: Strings with length variations
iOS 9.0 SDK provides new way to select and display proper localized string variation depending on screen width.
Xcode: Native Fuzzy Autocompletion
@hamzasood (Thanks!) mentioned about hidden feature in Xcode7 - Fuzzy Autocompletion.
iOS: Second try to NSOperation and long running tasks
Yesterday I wrote about using NSOperation for background tasks. It was more about long running tasks. When I finished writing the code I wasn’t so happy about how it looked. There were few bad things that I didn’t like. If you didn’t read the first version give it a try and next continue this one, I’ll wait :)
Xcode: New NSManagedObject subclass generator
Xcode 7 includes new generator of NSManagedObject subclasses and it works for both Swift and Objective-C classes.
- iOS: Using NSOperation for background tasks
iOS: Searching with UISearchController
iOS 8 brought a lot of new APIs for developers. One of them is new API used for searching. Before iOS 8 we’re using
UISearchDisplayController. Since iOS 8 there is new UISearchController available - let’s play with it for a moment and implement in Quotes app.
Swift: Enums without explicit string raw values
Xcode 7 beta 3 brought us changes in Swift 2.0 language - It is not necessary to set raw values explicitly for enums that inherit from String - Great!
Starting project in Swift 2 for iOS 9/8 features testing
Today I started new project on github, called Quotes. It has been created for testing features of iOS 9 and iOS 8 too which I was not able to test in the past or not tried yet because things are new.
iOS: Self-sizing table cells
Watched WWDC 2015 session about Auto Layout - Mysteries of Auto Layout, Part 1 and encountered issues during testing what Kasia Wawer presented there.
Xcode: PDF vectors in Assets catalog
Recently I realized that it is possible to work easier with Assets catalog in Xcode 6/7. As I started searching the Internet I found that the feature I’m using now is available since Xcode 6 has been released - PDF vectors. Don’t know how could I missed that.
Swift: Checking API availability
This is very nice addition in Swift 2. It provides API availability checking and makes our lives easier.
iOS: Unit testing in Swift and CLPlacemark mocking
Joined one project yesterday and I am responsible for converting few Objective-C classes to Swift where I can get some experience in Objective-C and Swift interoperability.
- Integrating Travis CI with Swift project
Test Driven Development for code safety and your peace
Today I spent time working on one framework I would like to share end of this week. It took me 8 hours and this were very peace, calm and nice hours of funny coding today. Why you might ask? Because of unit testing.
Swifternalization - localize apps smarter
I am happy to annouce my new framework written in Swift I built this week, Yay! As mentioned in previous post about Test Driven Development I was working this week on framework that solves problem of app localization and plural strings support in smarter way - And there it is - Swifternalization.
iOS: NSNumberFormatter additions in iOS 9
I’ve read changes in iOS 9 APIs and found interesting addition in
NSNumberFormatterclass. There are additional
NSNumberFormatterStyleenum options to format numbers.
iOS: Simplifying view controller's code and a view hierarchy in storyboard
I’ll show a way how to create custom controls/components and how to reduce the code inside view controller classes. This is a thing I learned few months ago, and I’m using it daily when dealing with custom controls.
Swift: Failable Enums with Optionals
This is response to Natasha Murashev’s post. She asked if someone found some better way of handling initializing enums with optional values. I think here is described a better one.
iOS: Mastering Core Data
Need to master Core Data? I finished reading one book right now, it’s really great.