Closed codingdoze closed 3 years ago
Hi, thanks for using this Lib, I'm glad you like it. Unfortunately, dynamically updating contents inside of decoration views is not possible (at least it used to be around iOS 12, but I guess that there did not change much ever since). There are, however, certain workarounds to make it work. You might want to take a look in this closed issue: https://github.com/stuffrabbit/SwiftSpreadsheet/issues/6. Hope this helps. Let me know if you find a solution.
Wojtek
thanks for the awesome library!! I can just create another nib file but I was wondering how to change label text on the fly.. Things I've tried..
//First I registered decorationview as SupplementaryView
self.collectionView.register(topRightDecorationViewNib, forSupplementaryViewOfKind: SpreadsheetLayout.ViewKindType.decorationTopRight.rawValue, withReuseIdentifier: self.defaultSupplementaryViewIdentifier)
//Lastly I tried to access it under ViewKind