{"action":"created","issue":{"url":"https://api.github.com/repos/linkedin/LayoutKit/issues/172","repository_url":"https://api.github.com/repos/linkedin/LayoutKit","labels_url":"https://api.github.com/repos/linkedin/LayoutKit/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/linkedin/LayoutKit/issues/172/comments","events_url":"https://api.github.com/repos/linkedin/LayoutKit/issues/172/events","html_url":"https://github.com/linkedin/LayoutKit/issues/172","id":269559747,"number":172,"title":"UIVisualEffectView not supported","user":{"login":"jiachenmu","id":15812211,"avatar_url":"https://avatars3.githubusercontent.com/u/15812211?v=4","gravatar_id":"","url":"https://api.github.com/users/jiachenmu","html_url":"https://github.com/jiachenmu","followers_url":"https://api.github.com/users/jiachenmu/followers","following_url":"https://api.github.com/users/jiachenmu/following{/other_user}","gists_url":"https://api.github.com/users/jiachenmu/gists{/gist_id}","starred_url":"https://api.github.com/users/jiachenmu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiachenmu/subscriptions","organizations_url":"https://api.github.com/users/jiachenmu/orgs","repos_url":"https://api.github.com/users/jiachenmu/repos","events_url":"https://api.github.com/users/jiachenmu/events{/privacy}","received_events_url":"https://api.github.com/users/jiachenmu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-30T11:05:55Z","updated_at":"2017-11-02T06:36:03Z","closed_at":null,"author_association":"NONE","body":" like the kind of ` View.contenView`\r\neg:\r\n\r\n```\r\nclass BlurLayout: SizeLayout< UIVisualEffectView > {\r\n   ..........\r\n}\r\n```\r\n\r\nit will crash:\r\n\r\n```\r\nextension View {\r\n\r\n    /**\r\n     Similar to `addSubview()` except if `maintainCoordinates` is true, then the view's frame\r\n     will be adjusted so that its absolute position on the screen does not change.\r\n     */\r\n    fileprivate func addSubview(_ view: View, maintainCoordinates: Bool) {\r\n        if maintainCoordinates {\r\n            let frame = view.convertToAbsoluteCoordinates(view.frame)\r\n            addSubview(view)\r\n            view.frame = view.convertFromAbsoluteCoordinates(frame)\r\n        } else {\r\n            addSubview(view)\r\n        }\r\n    }\r\n}\r\n```\r\nIs there some solutions?    thanks.. 😬"},"comment":{"url":"https://api.github.com/repos/linkedin/LayoutKit/issues/comments/341330594","html_url":"https://github.com/linkedin/LayoutKit/issues/172#issuecomment-341330594","issue_url":"https://api.github.com/repos/linkedin/LayoutKit/issues/172","id":341330594,"user":{"login":"jiachenmu","id":15812211,"avatar_url":"https://avatars3.githubusercontent.com/u/15812211?v=4","gravatar_id":"","url":"https://api.github.com/users/jiachenmu","html_url":"https://github.com/jiachenmu","followers_url":"https://api.github.com/users/jiachenmu/followers","following_url":"https://api.github.com/users/jiachenmu/following{/other_user}","gists_url":"https://api.github.com/users/jiachenmu/gists{/gist_id}","starred_url":"https://api.github.com/users/jiachenmu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiachenmu/subscriptions","organizations_url":"https://api.github.com/users/jiachenmu/orgs","repos_url":"https://api.github.com/users/jiachenmu/repos","events_url":"https://api.github.com/users/jiachenmu/events{/privacy}","received_events_url":"https://api.github.com/users/jiachenmu/received_events","type":"User","site_admin":false},"created_at":"2017-11-02T06:36:03Z","updated_at":"2017-11-02T06:36:03Z","author_association":"NONE","body":"In `LayoutKitDemo`, i finded this:\r\n\r\n```\r\nopen class CircleImagePileView: UIView {\r\n\r\n    open override func addSubview(_ view: UIView) {\r\n        // Make sure views are inserted below existing views so that the first image in the face pile is on top.\r\n        if let lastSubview = subviews.last {\r\n            insertSubview(view, belowSubview: lastSubview)\r\n        } else {\r\n            super.addSubview(view)\r\n        }\r\n    }\r\n}\r\n```\r\n\r\noverride `UIVisualEffectView.addSubview`,  is a solution?\r\n"}}
{"actor":{"display_login":"jiachenmu"}}