func - (left: CGSize, right: CGSize) -> CGSize {
return CGSize(width: left.width - right.width, height: left.height - right.height)
}
let gap = CGSize(width: scrollView.verticalScroller?.visibleRect.width ?? 0.0,
height: scrollView.horizontalScroller?.visibleRect.height ?? 0.0)
let bounds = NSRect(origin: CGPoint.zero, size: scrollView.bounds.size - gap)
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme