nighthawk / ASWeekSelectorView

iOS calendar-inspired simple mini week view to swipe through weeks and tap on days
Other
60 stars 12 forks source link

Style delegate not getting called #8

Open nighthawk opened 6 years ago

nighthawk commented 6 years ago

If the view is added to a nib file and the delegate is set as follows:

    let bundle = Bundle(for: MyView.self)
    let view = bundle.loadNibNamed("MyView", owner: self, options: nil)?.first as! MyView
    view.selector.delegate = view

Then the weekSelector(_, numberColorFor:) delegate method isn't called in time, meaning that the custom colouring isn't applied.