OSDN Git Service
(root)
/
kcd
/
KCD.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
guard の書き方を統一した
[kcd/KCD.git]
/
KCD
/
NSViewExtension.swift
1
//
2
// NSViewExtension.swift
3
// KCD
4
//
5
// Created by Hori,Masaki on 2017/03/03.
6
// Copyright © 2017年 Hori,Masaki. All rights reserved.
7
//
8
9
import Cocoa
10
11
extension NSView {
12
13
func setFrame(_ frame: NSRect, animate: Bool) {
14
15
(animate ? self.animator() : self).frame = frame
16
}
17
}