|
|
@ -86,12 +86,12 @@ struct UserView:View { |
|
|
|
var body:some View{ |
|
|
|
var body:some View{ |
|
|
|
VStack { |
|
|
|
VStack { |
|
|
|
HStack { |
|
|
|
HStack { |
|
|
|
ImageView(imageUrl: self.user.avatar_hd!) |
|
|
|
ImageView(imageUrl: self.user.avatar_hd ?? "") |
|
|
|
.frame(width: 60.0, height: 60.0) |
|
|
|
.frame(width: 60.0, height: 60.0) |
|
|
|
.clipShape(/*@START_MENU_TOKEN@*/Circle()/*@END_MENU_TOKEN@*/) |
|
|
|
.clipShape(/*@START_MENU_TOKEN@*/Circle()/*@END_MENU_TOKEN@*/) |
|
|
|
VStack { |
|
|
|
VStack { |
|
|
|
Text(self.user.name!) |
|
|
|
Text(self.user.name!) |
|
|
|
Text("简介:\(self.user.desc!)") |
|
|
|
Text("简介:\(self.user.desc ?? "")") |
|
|
|
} |
|
|
|
} |
|
|
|
Spacer() |
|
|
|
Spacer() |
|
|
|
Button(action: { |
|
|
|
Button(action: { |
|
|
|