Skip to content

Instantly share code, notes, and snippets.

View bengidev's full-sized avatar
👾
iOS App Developer

B e n g i bengidev

👾
iOS App Developer
View GitHub Profile
@gdavis
gdavis / xcode-vim.markdown
Last active May 26, 2025 12:44
Notes for working with Xcode VIM mode

Xcode VIM

Learning VIM in Xcode comes with its own set of challenges and limitations, but there is enough there for you to give your mousing hand a break and master the keyboard.

A limited set of commands are available in Xcode, and this document attempts help ease the learning curve of using VIM in Xcode by providing a handy reference as well as what I find works for me in practice.

NOTE: Commands are case-sensitive. A command of N means pressing shift + n on the keyboard.

This document is a work in progress! Leave a comment if you would like to see a change.

extension UILabel {
static func spaceLabel() -> UILabel {
let spacingLabel = UILabel()
spacingLabel.frame = CGRect(x: 0, y: 0, width: 150, height: 50)
spacingLabel.textColor = .white
spacingLabel.textAlignment = .center
spacingLabel.font = UIFont.boldSystemFont(ofSize: 18)
spacingLabel.text = "LIKE ME"
spacingLabel.backgroundColor = .red
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 30, 2025 01:44
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@zacwest
zacwest / ios-font-sizes.swift
Last active May 8, 2025 21:46
iOS default font sizes - also available on https://www.iosfontsizes.com
let styles: [UIFont.TextStyle] = [
// iOS 17
.extraLargeTitle, .extraLargeTitle2,
// iOS 11
.largeTitle,
// iOS 9
.title1, .title2, .title3, .callout,
// iOS 7
.headline, .subheadline, .body, .footnote, .caption1, .caption2,
]