Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func navigationBarItems<L, C, T>(leading: L, center: C, trailing: T) -> some View where L: View, C: View, T: View {
- self.navigationBarItems(leading:
- HStack{
- HStack {
- leading
- }
- .frame(width: 100, alignment: .leading)
- Spacer()
- HStack {
- center
- }
- .frame(width: 130, alignment: .center)
- Spacer()
- HStack {
- trailing
- }
- .frame(width: 100, alignment: .trailing)
- }
- .frame(width: UIScreen.main.bounds.size.width-32)
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement