Skip to content
Permalink
Browse files

Remove backgroundColor assignment (it doesn't work)

  • Loading branch information...
a2 committed Jun 8, 2019
1 parent 3994e33 commit 154ac54720b6aef1ccd5eccc16dac07862c155eb
Showing with 0 additions and 5 deletions.
  1. +0 −5 Sources/KeyboardAvoiding/KeyboardAvoiding.swift
@@ -1,11 +1,6 @@
import SwiftUI

class KeyboardAvoidingHostingController<Content>: UIHostingController<Content> where Content: View {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
view.backgroundColor = .clear
}

override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChangeFrame), name: UIResponder.keyboardWillChangeFrameNotification, object: nil)

0 comments on commit 154ac54

Please sign in to comment.
You can’t perform that action at this time.