Height of iOS8 Today Extension using Only Auto Layout Gives Broken Constraints

After some experimenting, and stumbling across “what is NSLayoutConstraint “UIView-Encapsulated-Layout-Height” and how should I go about forcing it to recalculate cleanly” I determined that you can circumvent this problem using either “Height” & “Equal Heights” OR “Height” and Top and Bottom “Vertical Space” (as suggested by Guilherme Sprint), and then decreasing the “Priority” of the … Read more

iOS Share vs Action App Extension

Here are my findings so far: Summary: Icon: Share extensions have colored icons. Icon location: Some apps, like Safari, have a large amount of un-hiddable activity icons that your icon would be competing with. User Interface: Share extensions should have a consistent UI. Intent: Share extensions are meant to be reserved for sharing content, but … Read more

Swift apply .uppercaseString to only the first letter of a string

Including mutating and non mutating versions that are consistent with API guidelines. Swift 3: extension String { func capitalizingFirstLetter() -> String { let first = String(characters.prefix(1)).capitalized let other = String(characters.dropFirst()) return first + other } mutating func capitalizeFirstLetter() { self = self.capitalizingFirstLetter() } } Swift 4: extension String { func capitalizingFirstLetter() -> String { return … Read more