import Foundation

public struct User {

  public var name: String
  public var avatarURL: NSURL?

  public init(name: String, avatarURL: NSURL? = nil) {
    self.name = name
    self.avatarURL = avatarURL
  }
}

import Foundation

public struct User {

  public var name: String
  public var avatar: URLStringConvertible?

  public init(name: String, avatar: URLStringConvertible? = nil) {
    self.name = name
    self.avatar = avatar
  }
}

Rename and change avatar type
Rename and change avatar type
