<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>w6500</author_name>
  <author_url>https://blog.hatena.ne.jp/w6500/</author_url>
  <blog_title>tanihiro.log</blog_title>
  <blog_url>https://tanihiro.hatenablog.com/</blog_url>
  <categories>
    <anon>swift</anon>
    <anon>iOS</anon>
  </categories>
  <description>最近は、storyboardもxibも使わない方針で実装しているため、Viewを構築するのも全てコードで定義しています。 特に考えなければ、initializeの時に組み立ててしまうのですが、そうするとViewControllerとは関係のないコードが増えていき、可読性が悪くなります。 class ViewController: UIViewController { init() { super.init(nibName: nil, bundle: nil) // ここで組み立ててしまうとあっという間に行数が増えていく... addSubview(UIView()) addSubview(UI…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanihiro.hatenablog.com%2Fentry%2F2016%2F05%2F23%2F220949&quot; title=&quot;【swift】ViewControllerとViewを分離させてViewControllerの記述を減らす - tanihiro.log&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-05-23 22:09:49</published>
  <title>【swift】ViewControllerとViewを分離させてViewControllerの記述を減らす</title>
  <type>rich</type>
  <url>https://tanihiro.hatenablog.com/entry/2016/05/23/220949</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
