Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // RoundedMap.swift
- //
- // Created by Lachy Schumacher.
- // Copyright © 2019 Lachy Schumacher. All rights reserved.
- //
- import UIKit
- import MapKit
- @IBDesignable
- class RoundedMap: MKMapView{
- override init(frame: CGRect) {
- super.init(frame: frame)
- }
- required init?(coder aDecoder: NSCoder) {
- super.init(coder: aDecoder)
- }
- override func layoutSubviews() {
- super.layoutSubviews()
- self.layer.cornerRadius = frame.size.width / 2;
- self.clipsToBounds = true
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement