Skip to content

Instantly share code, notes, and snippets.

View pr0zac's full-sized avatar

Zac Morris pr0zac

  • San Francisco, CA
View GitHub Profile
color molokai
"dear f1 key, please go fuck yourself, sincerely zac
inoremap <f1> <esc>
nnoremap <f1> <esc>
vnoremap <f1> <esc>
if (has("gui"))
set gfn=Monaco:h12
set lines=5000

Keybase proof

I hereby claim:

  • I am pr0zac on github.
  • I am zac (https://keybase.io/zac) on keybase.
  • I have a public key whose fingerprint is B16C 60C7 CA50 00E1 CF66 36CE F7C2 2E14 8224 4CB2

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am pr0zac on github.
  • I am pr0zac (https://keybase.io/pr0zac) on keybase.
  • I have a public key whose fingerprint is FB44 A877 32CA B06F F8AD F3CA 0364 C32A DE18 D062

To claim this, I am signing this object:

diff --git a/Vault/Controllers/Wallet/WalletInfoSectionController.swift b/Vault/Controllers/Wallet/WalletInfoSectionController.swift
index 50ad2b8..3c91d52 100644
--- a/Vault/Controllers/Wallet/WalletInfoSectionController.swift
+++ b/Vault/Controllers/Wallet/WalletInfoSectionController.swift
@@ -36,6 +36,11 @@ final class WalletInfoSectionController: FeedSectionController<WalletInfoSection
displayDelegate = self
}
+ deinit {
+ appStore.unsubscribe(self)
//
// ProfilePictureGroupView.swift
// Vault
//
// Created by Cole Potrocky on 1/24/19.
// Copyright © 2019 Vault. All rights reserved.
//
import UIKit
diff --git a/Vault/Views/General/ProfilePictureGroupView.swift b/Vault/Views/General/ProfilePictureGroupView.swift
index 158bc0b..31b6408 100644
--- a/Vault/Views/General/ProfilePictureGroupView.swift
+++ b/Vault/Views/General/ProfilePictureGroupView.swift
@@ -83,7 +83,7 @@ final class ProfilePictureGroupView: UIView {
let minX = subviews.reduce(0) { acc, v in min(acc, v.frame.minX) }
let maxX = subviews.reduce(0) { acc, v in max(acc, v.frame.maxX) }
- let width = ceil(maxX - minX)
+ let width = max(ceil(maxX - minX), preferredSize.width)