Tag
custom
3 notes.
SwiftUI: Create a Custom Navigation Bar
In this article we create a reusable navigation bar in SwiftUI: a centred or large title, leading and trailing buttons, your own colours, and a Back button that actually pops the screen. It's applied as a modifier, so it sits where the system bar would.
iOS: Load custom UITableViewCell with Nib
Using the interface builder i created a custom 'UITableViewCell' named 'MyCustomCellNib', with a custom class file 'MyCustomCell' inherited from 'UITableViewCell'. This is code i used to load the cell with the nib.
Magento: Check if an admin is logged in or not
If you are writing a custom module, and you want it to be accessed only by admins, then you possibly need the following code in your controller. 18834118056aaeece886252_000006